Class DummyWorkerThread¶
Defined in File dummy_worker_thread.h
Class Documentation¶
-
class
switchml::DummyWorkerThread¶ A class that represents a single dummy worker thread.
A worker thread constantly asks the context for work and carries it out.
Multiple instances of this class is typically created depending on the number of cores in the configuration.
Public Functions
-
DummyWorkerThread(Context &context, DummyBackend &backend, Config &config)¶ Construct a new Dummy Worker Thread object.
- Parameters
context – [in] a reference to the switchml context.
backend – [in] a reference to the created dummy backend.
config – [in] a reference to the context configuration.
-
~DummyWorkerThread()¶
-
DummyWorkerThread(DummyWorkerThread const&) = default¶
-
void
operator=(DummyWorkerThread const&) = delete¶
-
DummyWorkerThread(DummyWorkerThread&&) = default¶
-
DummyWorkerThread &
operator=(DummyWorkerThread&&) = default¶
-
void
operator()()¶ This is the point of entry function for the thread.
-
void
Start()¶ Start the thread.
-
void
Join()¶ Wait for the thread to exit and delete its system reference.
-