Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
appbase::execution_priority_queue::executor Class Reference

#include <execution_priority_queue.hpp>

Public Member Functions

 executor (execution_priority_queue &q, int p)
 
execution_priority_queuecontext () const noexcept
 
template<typename Function , typename Allocator >
void dispatch (Function f, const Allocator &) const
 
template<typename Function , typename Allocator >
void post (Function f, const Allocator &) const
 
template<typename Function , typename Allocator >
void defer (Function f, const Allocator &) const
 
void on_work_started () const noexcept
 
void on_work_finished () const noexcept
 
bool operator== (const executor &other) const noexcept
 
bool operator!= (const executor &other) const noexcept
 

Detailed Description

Definition at line 51 of file execution_priority_queue.hpp.

Constructor & Destructor Documentation

◆ executor()

appbase::execution_priority_queue::executor::executor ( execution_priority_queue & q,
int p )
inline

Definition at line 54 of file execution_priority_queue.hpp.

55 : context_(q), priority_(p)
56 {
57 }
const mie::Vuint & p
Definition bn.cpp:27

Member Function Documentation

◆ context()

execution_priority_queue & appbase::execution_priority_queue::executor::context ( ) const
inlinenoexcept

Definition at line 59 of file execution_priority_queue.hpp.

60 {
61 return context_;
62 }

◆ defer()

template<typename Function , typename Allocator >
void appbase::execution_priority_queue::executor::defer ( Function f,
const Allocator &  ) const
inline

Definition at line 77 of file execution_priority_queue.hpp.

78 {
79 context_.add(priority_, std::move(f));
80 }
void add(int priority, Function function)
Here is the call graph for this function:

◆ dispatch()

template<typename Function , typename Allocator >
void appbase::execution_priority_queue::executor::dispatch ( Function f,
const Allocator &  ) const
inline

Definition at line 65 of file execution_priority_queue.hpp.

66 {
67 context_.add(priority_, std::move(f));
68 }
Here is the call graph for this function:

◆ on_work_finished()

void appbase::execution_priority_queue::executor::on_work_finished ( ) const
inlinenoexcept

Definition at line 83 of file execution_priority_queue.hpp.

83{}

◆ on_work_started()

void appbase::execution_priority_queue::executor::on_work_started ( ) const
inlinenoexcept

Definition at line 82 of file execution_priority_queue.hpp.

82{}

◆ operator!=()

bool appbase::execution_priority_queue::executor::operator!= ( const executor & other) const
inlinenoexcept

Definition at line 90 of file execution_priority_queue.hpp.

91 {
92 return !operator==(other);
93 }
bool operator==(const executor &other) const noexcept
Here is the call graph for this function:

◆ operator==()

bool appbase::execution_priority_queue::executor::operator== ( const executor & other) const
inlinenoexcept

Definition at line 85 of file execution_priority_queue.hpp.

86 {
87 return &context_ == &other.context_ && priority_ == other.priority_;
88 }
Here is the caller graph for this function:

◆ post()

template<typename Function , typename Allocator >
void appbase::execution_priority_queue::executor::post ( Function f,
const Allocator &  ) const
inline

Definition at line 71 of file execution_priority_queue.hpp.

72 {
73 context_.add(priority_, std::move(f));
74 }
Here is the call graph for this function:

The documentation for this class was generated from the following file: