Class Backend¶
Defined in File backend.h
Inheritance Relationships¶
Derived Types¶
public switchml::DpdkBackend(Class DpdkBackend)public switchml::DummyBackend(Class DummyBackend)public switchml::RdmaBackend(Class RdmaBackend)
Class Documentation¶
-
class
switchml::Backend¶ An interface that describes the backend.
A backend is the class responsible for creating worker threads and actually carrying out the jobs submitted by performing the communication.
Subclassed by switchml::DpdkBackend, switchml::DummyBackend, switchml::RdmaBackend
Public Functions
-
~Backend() = default¶
-
virtual void
SetupWorker() = 0¶ Initializes backend specific variables and starts worker threads.
-
virtual void
CleanupWorker() = 0¶ Cleans up all worker state and waits for the worker threads to exit.
Public Static Functions
-
static std::unique_ptr<Backend>
CreateInstance(Context &context, Config &config)¶ Factory function to create a backend instance based on the configuration passed.
- Parameters
context – [in] a reference to the switchml context.
config – [in] a reference to the switchml configuration.
- Returns
std::unique_ptr<Backend> a unique pointer to the created backend object.
Protected Functions
-