Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
lifetime Namespace Reference

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

Functions

void exit_sunshine (int exit_code, bool async)
 Terminates Sunshine gracefully with the provided exit code.
void debug_trap ()
 Breaks into the debugger or terminates Sunshine if no debugger is attached.
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

◆ debug_trap()

void lifetime::debug_trap ( )

Breaks into the debugger or terminates Sunshine if no debugger is attached.

Definition at line 73 of file entry_handler.cpp.

◆ 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.

Definition at line 58 of file entry_handler.cpp.

◆ get_argv()

char ** lifetime::get_argv ( )

Get the argv array passed to main().

Definition at line 79 of file entry_handler.cpp.

Variable Documentation

◆ argv

char ** lifetime::argv

Definition at line 55 of file entry_handler.cpp.

◆ desired_exit_code

std::atomic_int lifetime::desired_exit_code

Definition at line 56 of file entry_handler.cpp.