roar
|
#include <shutdown_barrier.hpp>
Classes | |
struct | Implementation |
Public Member Functions | |
ShutdownBarrier () noexcept | |
~ShutdownBarrier () | |
ShutdownBarrier (ShutdownBarrier &&) | |
ShutdownBarrier (ShutdownBarrier const &)=delete | |
ShutdownBarrier & | operator= (ShutdownBarrier &&) |
ShutdownBarrier & | operator= (ShutdownBarrier const &)=delete |
void | release (int releasedWithWhatSignal) |
Releases the barrier and stops blocking. | |
int | wait () |
Waits until release is called and returns the signal. | |
Static Private Member Functions | |
static void | installSignalHandlers () |
Private Attributes | |
std::unique_ptr< Implementation > | m_impl |
A ShutdownBarrier will block execution until SIGINT (Ctrl + C), SIGTSTP (Ctrl + Z) or SIGTERM (OS shutdown and graceful termination signal from task managers) is received.
|
noexcept |
|
default |
|
default |
|
delete |
|
staticprivate |
|
default |
|
delete |
void Roar::ShutdownBarrier::release | ( | int | releasedWithWhatSignal | ) |
Releases the barrier and stops blocking.
int Roar::ShutdownBarrier::wait | ( | ) |
Waits until release is called and returns the signal.
|
private |