The Pedigree Project 0.1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SchedulerTimerHandlerSlot::DispatchGuard Class Reference

#include <SchedulerTimerHandlerSlot.h>

+ Collaboration diagram for SchedulerTimerHandlerSlot::DispatchGuard:

Public Member Functions

SchedulerTimerHandlerhandler () const
 
void release ()
 

Private Member Functions

 DispatchGuard (const DispatchGuard &)=delete
 
DispatchGuardoperator= (const DispatchGuard &)=delete
 

Private Attributes

SchedulerTimerHandlerSlotm_Slot
 
SchedulerTimerHandlerm_Handler
 

Friends

class SchedulerTimerHandlerSlot
 

Detailed Description

Scoped proof that one callback body owns this slot's admission.

Definition at line 34 of file SchedulerTimerHandlerSlot.h.

Constructor & Destructor Documentation

◆ DispatchGuard()

SchedulerTimerHandlerSlot::DispatchGuard::DispatchGuard ( )
inline

Definition at line 36 of file SchedulerTimerHandlerSlot.h.

◆ ~DispatchGuard()

SchedulerTimerHandlerSlot::DispatchGuard::~DispatchGuard ( )
inline

Definition at line 38 of file SchedulerTimerHandlerSlot.h.

Member Function Documentation

◆ handler()

SchedulerTimerHandler * SchedulerTimerHandlerSlot::DispatchGuard::handler ( ) const
inline

Definition at line 42 of file SchedulerTimerHandlerSlot.h.

◆ release()

void SchedulerTimerHandlerSlot::DispatchGuard::release ( )
inline

Releases this admission exactly once.

Scheduler frames can be abandoned without running destructors. A Thread state-cleanup record uses this explicit operation in that path; the eventual destructor is then a harmless no-op.

Definition at line 53 of file SchedulerTimerHandlerSlot.h.

Friends And Related Symbol Documentation

◆ SchedulerTimerHandlerSlot

friend class SchedulerTimerHandlerSlot
friend

Definition at line 63 of file SchedulerTimerHandlerSlot.h.

Member Data Documentation

◆ m_Handler

SchedulerTimerHandler* SchedulerTimerHandlerSlot::DispatchGuard::m_Handler
private

Definition at line 68 of file SchedulerTimerHandlerSlot.h.

◆ m_Slot

SchedulerTimerHandlerSlot* SchedulerTimerHandlerSlot::DispatchGuard::m_Slot
private

Definition at line 67 of file SchedulerTimerHandlerSlot.h.


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