ThreadEx class for working with threads.
More...
#include <threadex.h>
|
|
virtual void | execute ()=0 |
| | Provides an abstract or pure virtual method to contain the code which executes when the thread is run.
|
| |
|
void | setThreadName (const char *name) |
| | Set current thread name (you must call it from the thread)
|
| |
|
|
std::recursive_mutex | lock |
| |
|
std::atomic< bool > | terminated |
| |
|
std::atomic< bool > | finished |
| |
|
ThreadExceptionAdapter * | exceptionAdapter {} |
| |
ThreadEx class for working with threads.
◆ getExceptionAdapter()
Returns exception information holder.
- Returns
- Exception object
◆ getFinished()
| const std::atomic<bool>& ThreadEx::getFinished |
( |
| ) |
const |
Returns true if thread has already been finished.
- Returns
- Finished status.
◆ getLock()
| std::recursive_mutex& ThreadEx::getLock |
( |
| ) |
|
Get thread's locking object.
- Returns
- std::recursive_mutex& locking thread object
◆ getPriority()
| const ThreadExPriority& ThreadEx::getPriority |
( |
| ) |
const |
Get thread's scheduling priority relative to other threads in the process.
- Returns
- Current ThreadExPriority value
◆ getStarted()
| bool ThreadEx::getStarted |
( |
| ) |
const |
Returns true if thread is started.
- Returns
- Thread is started.
◆ getTerminated()
| const std::atomic<bool>& ThreadEx::getTerminated |
( |
| ) |
const |
Returns thread's terminated signal.
- Returns
- Terminated signal.
◆ setExceptionAdapter()
Sets exception information holder.
- Parameters
-
◆ setPriority()
| void ThreadEx::setPriority |
( |
ThreadExPriority |
priority | ) |
|
Set thread's scheduling priority relative to other threads in the process.
- Parameters
-
| priority | a new priority value. |
The documentation for this class was generated from the following file:
- C:/CProjects/Libs/CommonLib/include/commonlib/threading/threadex.h