TracktionEngine
|
Enables the calling thread to be cancelled from another thread and the calling thread to be able to query this. More...
#include <tracktion_Threads.h>
Public Member Functions | |
ScopedThreadExitStatusEnabler () | |
Enables the current thread to query shouldCurrentThreadExit and other threads to call signalThreadShouldExit. | |
~ScopedThreadExitStatusEnabler () | |
Cleans up the exit status. | |
std::thread::id | getID () const |
Returns the thread_id. | |
Enables the calling thread to be cancelled from another thread and the calling thread to be able to query this.
Put one of these in your thread body then you can use signalThreadShouldExit and shouldCurrentThreadExit
engine::ScopedThreadExitStatusEnabler::ScopedThreadExitStatusEnabler | ( | ) |
Enables the current thread to query shouldCurrentThreadExit and other threads to call signalThreadShouldExit.
engine::ScopedThreadExitStatusEnabler::~ScopedThreadExitStatusEnabler | ( | ) |
Cleans up the exit status.
std::thread::id engine::ScopedThreadExitStatusEnabler::getID | ( | ) | const |
Returns the thread_id.