|
Support Class Library
A set of tools providing classes and utility
|
A class that allow task execution on a separate thread using RAII semantics. More...
#include "Active.h"

Public Types | |
| using | message_type = std::function< void()> |
| The type of messages sent through the queue. More... | |
| using | thread_type = std::thread |
| The type of threads used to execute the tasks. More... | |
| using | flag_type = std::atomic_bool |
| The type of flags used for completion checks. More... | |
| using | message_queue_type = Channel< message_type > |
| The type of queue used to send messages. More... | |
Public Member Functions | |
| Active () | |
| Construct an active object (starts spinning the queue) More... | |
| ~Active () | |
| Destroy an active object (finishing the queue) More... | |
| void | execute (message_type msg) |
| Execute a task via the active object. More... | |
Protected Attributes | |
| flag_type | done |
| The flag determining whether or not we should execute more tasks. More... | |
| message_queue_type | mq |
| The queue used to transfer messages. More... | |
| thread_type | thread |
| The worker thread used to execute tasks. More... | |
A class that allow task execution on a separate thread using RAII semantics.
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
1.8.13