Sunshine latest
Self-hosted game stream host for Moonlight.
lifetime Namespace Reference

Functions for handling the lifetime of Sunshine. More...

Functions

void debug_trap ()
 Breaks into the debugger or terminates Sunshine if no debugger is attached.
 
void exit_sunshine (int exit_code, bool async)
 Terminates Sunshine gracefully with the provided exit code.
 
char ** get_argv ()
 Get the argv array passed to main().
 

Variables

char ** argv
 
std::atomic_int desired_exit_code
 

Detailed Description

Functions for handling the lifetime of Sunshine.

Function Documentation

◆ exit_sunshine()

void lifetime::exit_sunshine ( int exit_code,
bool async )

Terminates Sunshine gracefully with the provided exit code.

Parameters
exit_codeThe exit code to return from main().
asyncSpecifies whether our termination will be non-blocking.