Class DpdkWorkerThread¶
Defined in File dpdk_worker_thread.h
Class Documentation¶
-
class
switchml::DpdkWorkerThread¶ A class that represents a single dpdk 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. This class has no Start and Join functions as other typical thread classes in the client library. This is because starting and joining the DPDK worker thread is handled by DPDK itself.
Public Functions
-
DpdkWorkerThread(Context &context, DpdkBackend &backend, Config &config)¶ Initialize all members and instantiate the prepostprocessor to be used by the worker thread.
- Parameters
context – [in] a reference to the switchml context.
backend – [in] a reference to the created dpdk backend.
config – [in] a reference to the context configuration.
-
~DpdkWorkerThread()¶
-
DpdkWorkerThread(DpdkWorkerThread const&) = delete¶
-
void
operator=(DpdkWorkerThread const&) = delete¶
-
DpdkWorkerThread(DpdkWorkerThread&&) = default¶
-
DpdkWorkerThread &
operator=(DpdkWorkerThread&&) = default¶
-
void
operator()()¶ This is the point of entry function for the thread.
-