Function pointer entry. More...
Public Member Functions | |
~RunQueueEntry () | |
RunQueueEntry destructor. | |
uint_t | GetPriority (void) const noexcept |
Get the priority value. | |
Private Member Functions | |
RunQueueEntry (const RunQueueEntry &)=delete | |
RunQueueEntry & | operator= (const RunQueueEntry &)=delete |
RunQueueEntry (RunQueueEntry &&)=delete | |
RunQueueEntry & | operator= (RunQueueEntry &&)=delete |
RunQueueEntry (CallbackProc pCallBack, CallbackProc pShutdownCallback, void *pData, uint_t uPriority) noexcept | |
RunQueueEntry constructor. | |
Private Attributes | |
CallbackProc | m_pCallBack |
Function to call for this entry. | |
CallbackProc | m_pShutdownCallback |
Function to call on deletion. | |
void * | m_pData |
User supplied data pointer to call the function with. | |
uint_t | m_uPriority |
User supplied priority for inserting a new entry into the list. | |
Friends | |
class | RunQueue |
Additional Inherited Members | |
Protected Member Functions inherited from Burger::DoubleLinkedList | |
DoubleLinkedList () noexcept | |
Initializer for a DoubleLinkedList. | |
~DoubleLinkedList () | |
Destructor for a DoubleLinkedList. | |
void | detach (void) noexcept |
Detach this object from any attached linked list. | |
void | insert_after (DoubleLinkedList *pInput) noexcept |
Attach the input object after this one in the list. | |
void | insert_before (DoubleLinkedList *pInput) noexcept |
Attach the input object before this one in the list. | |
DoubleLinkedList * | get_next (void) const noexcept |
Get the next pointer in the list. | |
DoubleLinkedList * | get_previous (void) const noexcept |
Get the previous pointer in the list. | |
Protected Member Functions inherited from Burger::DoubleLinkedList_t | |
void | init (void) noexcept |
Double linked list initialization. | |
void | detach (void) noexcept |
Detach entry from connected list. | |
void | insert_after (DoubleLinkedList_t *pInput) noexcept |
Insert the supplied object after this object. | |
void | insert_before (DoubleLinkedList_t *pInput) noexcept |
Insert the supplied object before this object. | |
Static Protected Member Functions inherited from Burger::DoubleLinkedList | |
static DoubleLinkedList * | New (void) noexcept |
Create a new DoubleLinkedList instance. | |
Protected Attributes inherited from Burger::DoubleLinkedList_t | |
DoubleLinkedList_t * | m_pNext |
Pointer to the next entry. | |
DoubleLinkedList_t * | m_pPrev |
Pointer to the previous entry. | |
Function pointer entry.
The RunQueue manages a list of these class entries that hold the callback pointers for every callback entry.
They are created with a call to RunQueue::Add().
To dispose this class, call Delete()
|
privatedelete |
|
privatedelete |
|
inlineprivatenoexcept |
RunQueueEntry constructor.
pCallBack | Pointer to a function that is called when the queue is polled |
pShutdownCallback | Pointer to a function that is called when this entry is disposed of |
pData | Pointer to function data. |
uPriority | Priority value for location in the queue |
Burger::RunQueue::RunQueueEntry::~RunQueueEntry | ( | ) |
RunQueueEntry destructor.
When a RunQueueEntry is destroyed, if there is a shutdown procedure defined, call the function with the application supplied data pointer before deleting the entry.
This function does not attempt to delete the application data, it's the shutdown function's responsibility to dispose of any data that it's managing.
|
inlinenoexcept |
|
privatedelete |
|
privatedelete |
|
friend |
|
private |
Function to call for this entry.
|
private |
User supplied data pointer to call the function with.
|
private |
Function to call on deletion.
|
private |
User supplied priority for inserting a new entry into the list.