16 #ifndef DABC_CommandsQueue
17 #define DABC_CommandsQueue
Represents command with its arguments.
uint32_t ChangeKind(Command &cmd, EKind kind)
Change kind of the entry for specified command.
@ kindSubmit
command submitted for execution
@ kindPostponed
command submitted but postponed to not increase execution recursion
@ kindReply
command replied to the worker
@ kindAssign
command assign with the worker, but not yet replied
void Cleanup(Mutex *m=nullptr, Worker *proc=nullptr, int res=cmd_false)
void ReplyTimedout()
Reply timed-out commands.
Command PopWithId(uint32_t id)
CommandsQueue(EKind kind=kindNone)
Normal constructor.
Command PopWithKind(EKind kind)
void ReplyAll(int res)
Reply all commands.
uint32_t Push(Command cmd, EKind kind=kindNone)
Add reference on the command in the queue.
std::list< QueueRec > QueueRecsList
Active object, which is working inside dabc::Thread.
QueueRec(const Command &_cmd, EKind _kind, uint32_t _id)
QueueRec(const QueueRec &src)
QueueRec & operator=(const QueueRec &src)