11 #ifndef _UGCS_VSM_REQUEST_WORKER_H_
12 #define _UGCS_VSM_REQUEST_WORKER_H_
34 const std::string& name,
35 const std::initializer_list<Request_container::Ptr> &containers);
39 const std::string& name,
40 const std::list<Request_container::Ptr> &containers);
61 std::list<Request_container::Ptr> containers;
69 On_disable()
override;
73 On_wait_and_process()
override;
Request_worker(const std::string &name)
Construct worker.
Definition: request_worker.h:29
std::shared_ptr< Request > Ptr
Pointer type.
Definition: request_container.h:38
Request execution context.
Container capable of handling both requests and completions.
Request execution context.
Definition: request_context.h:24
void Disable_containers()
Disable all containers belonging to this worker.
Generic container for queued requests.
Definition: request_container.h:30
void Enable_containers()
Enable all containers belonging to this worker.
Type
Container type.
Definition: request_container.h:446
virtual Type Get_type() const override
Get this container type.
Definition: request_worker.h:44
Class for convenient worker thread instantiation for processing requests in a set request containers...
Definition: request_worker.h:24
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25