The Pedigree Project 0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DeferredTimeAccounting Class Reference

#include <DeferredTimeAccounting.h>

+ Collaboration diagram for DeferredTimeAccounting:

Public Member Functions

bool publish (Time::Timestamp elapsed)
 
bool take ()
 
bool pending () const
 

Private Member Functions

 DeferredTimeAccounting (const DeferredTimeAccounting &)=delete
 
DeferredTimeAccountingoperator= (const DeferredTimeAccounting &)=delete
 

Private Attributes

size_t m_Pending
 

Detailed Description

Coalesces process CPU-time updates into one ordinary-worker edge.

Definition at line 153 of file DeferredTimeAccounting.h.

Constructor & Destructor Documentation

◆ DeferredTimeAccounting()

DeferredTimeAccounting::DeferredTimeAccounting ( )
inline

Definition at line 155 of file DeferredTimeAccounting.h.

Member Function Documentation

◆ pending()

bool DeferredTimeAccounting::pending ( ) const
inline

Definition at line 171 of file DeferredTimeAccounting.h.

◆ publish()

bool DeferredTimeAccounting::publish ( Time::Timestamp  elapsed)
inline

Returns true only for the 0-to-1 edge which must ring the worker.

Definition at line 158 of file DeferredTimeAccounting.h.

Referenced by Process::setTimeAccountingReportInterest().

+ Here is the caller graph for this function:

◆ take()

bool DeferredTimeAccounting::take ( )
inline

Claims the edge; a racing later publication re-arms it.

Definition at line 167 of file DeferredTimeAccounting.h.

Referenced by Process::closeDeferredTimeAccounting(), and Process::drainDeferredTimeAccounting().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_Pending

size_t DeferredTimeAccounting::m_Pending
private

Definition at line 176 of file DeferredTimeAccounting.h.


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