![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Public Member Functions | |
| state_root () noexcept | |
| ~state_root () | |
| void | broadcast_should_exit (bool quit_watcher=false) |
Static Public Member Functions | |
| static void | deleter (struct module *m) |
| static void | should_exit_watcher (state_root *s) |
Public Attributes | |
| volatile int | exit_status = EXIT_SUCCESS |
Private Attributes | |
| mutex | lock |
| list< tuple< void(*)(void *), void * > > | should_exit_callbacks |
| fd_t | should_exit_pipe [2] |
| thread | should_exit_thread |
Static Private Attributes | |
| static constexpr char | QUIT_WATCHER_FLAG = 1 |
Friends | |
| void | register_should_exit_callback (struct module *mod, void(*callback)(void *), void *udata) |
| void | unregister_should_exit_callback (struct module *mod, void(*callback)(void *), void *udata) |
|
inlinenoexcept |
Definition at line 540 of file host.cpp.
References LOG, LOG_LEVEL_FATAL, platform_pipe_init(), should_exit_pipe, should_exit_thread, and should_exit_watcher().

|
inline |
Definition at line 547 of file host.cpp.
References broadcast_should_exit(), platform_pipe_close(), should_exit_callbacks, should_exit_pipe, and should_exit_thread.

|
inline |
Definition at line 579 of file host.cpp.
References PLATFORM_PIPE_WRITE, QUIT_WATCHER_FLAG, and should_exit_pipe.
Referenced by ~state_root(), and exit_uv().
|
inlinestatic |
Definition at line 557 of file host.cpp.
References module::priv_data.
Referenced by init_root_module().
|
inlinestatic |
Definition at line 561 of file host.cpp.
References lock, PLATFORM_PIPE_READ, QUIT_WATCHER_FLAG, set_thread_name(), should_exit_callbacks, and should_exit_pipe.
Referenced by state_root().

|
friend |
|
friend |
Unregisters should_exit callback registered with register_should_exit_callback
The callback must have been registered (and not unregistered), otherwise abort is (currently) called.
Definition at line 1158 of file host.cpp.
| volatile int state_root::exit_status = EXIT_SUCCESS |
|
private |
Definition at line 590 of file host.cpp.
Referenced by should_exit_watcher().
|
staticconstexprprivate |
Definition at line 589 of file host.cpp.
Referenced by broadcast_should_exit(), and should_exit_watcher().
|
private |
Definition at line 593 of file host.cpp.
Referenced by ~state_root(), and should_exit_watcher().
|
private |
Definition at line 591 of file host.cpp.
Referenced by state_root(), ~state_root(), broadcast_should_exit(), and should_exit_watcher().
|
private |
Definition at line 592 of file host.cpp.
Referenced by state_root(), and ~state_root().