TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec::Signal::OnExit Struct Reference

Helper struct to signal termination on exit. More...

#include <tec_signal.hpp>

Public Member Functions

 OnExit (Signal *sig)
 Constructs an OnExit helper with a termination signal.
 
 ~OnExit ()
 Destructor that sets the termination signal.
 

Detailed Description

Helper struct to signal termination on exit.

Automatically sets the termination signal when destroyed.

Constructor & Destructor Documentation

◆ OnExit()

tec::Signal::OnExit::OnExit ( Signal sig)
inlineexplicit

Constructs an OnExit helper with a termination signal.

Parameters
sigThe termination signal to set on destruction.

The documentation for this struct was generated from the following file: