Class RdmaWorkerThread¶
Defined in File rdma_worker_thread.h
Class Documentation¶
-
class
switchml::RdmaWorkerThread¶ A class that represents a single rdma 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 threads in the configuration.
Public Functions
-
RdmaWorkerThread(Context &context, RdmaBackend &backend, Config &config)¶ Construct a new RDMA Worker Thread object.
- Parameters
context – [in] a reference to the switchml context.
backend – [in] a reference to the created rdma backend.
config – [in] a reference to the context configuration.
-
~RdmaWorkerThread()¶
-
RdmaWorkerThread(RdmaWorkerThread const&) = default¶
-
void
operator=(RdmaWorkerThread const&) = delete¶
-
RdmaWorkerThread(RdmaWorkerThread&&) = default¶
-
RdmaWorkerThread &
operator=(RdmaWorkerThread&&) = 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.
-