Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
ActivationEvent Struct Reference

#include "vault/gear/scheduler-invocation.hpp"

Description

data record passed through the queues, representing an event to be scheduled

Definition at line 82 of file scheduler-invocation.hpp.

Public Attributes

Activityactivity
 
int64_t starting
 
int64_t deadline
 
uint32_t manifestation:32
 
bool isCompulsory:1
 

Public Member Functions

 ActivationEvent ()
 
 ActivationEvent (Activity &act, Time when, Time dead=Time::NEVER, ManifestationID manID=ManifestationID(), bool compulsory=false)
 
bool operator< (ActivationEvent const &o) const
 
 operator bool () const
 
 operator Activity * () const
 
Time startTime () const
 
Time deathTime () const
 
void refineTo (Activity *chain, Time when, Time dead)
 

Constructor & Destructor Documentation

◆ ActivationEvent() [1/2]

ActivationEvent ( )
inline

Definition at line 91 of file scheduler-invocation.hpp.

◆ ActivationEvent() [2/2]

ActivationEvent ( Activity act,
Time  when,
Time  dead = Time::NEVER,
ManifestationID  manID = ManifestationID(),
bool  compulsory = false 
)
inline

Definition at line 99 of file scheduler-invocation.hpp.

Member Function Documentation

◆ operator<()

bool operator< ( ActivationEvent const &  o) const
inline

ordering function for time based scheduling

Note
reversed order as required by std::priority_queue to get the earliest element at top of the queue

Definition at line 115 of file scheduler-invocation.hpp.

References ActivationEvent::starting.

◆ operator bool()

operator bool ( ) const
inline

Definition at line 121 of file scheduler-invocation.hpp.

References ActivationEvent::activity.

◆ operator Activity *()

operator Activity * ( ) const
inline

Definition at line 122 of file scheduler-invocation.hpp.

References ActivationEvent::activity.

◆ startTime()

Time startTime ( ) const
inline

Definition at line 124 of file scheduler-invocation.hpp.

References ActivationEvent::starting.

Referenced by Scheduler::postChain(), ActivationEvent::refineTo(), and Scheduler::sanityCheck().

+ Here is the caller graph for this function:

◆ deathTime()

Time deathTime ( ) const
inline

Definition at line 125 of file scheduler-invocation.hpp.

References ActivationEvent::deadline.

Referenced by ActivationEvent::refineTo(), and Scheduler::sanityCheck().

+ Here is the caller graph for this function:

◆ refineTo()

void refineTo ( Activity chain,
Time  when,
Time  dead 
)
inline

Definition at line 128 of file scheduler-invocation.hpp.

References ActivationEvent::activity, Activity::constrainedDeath(), Activity::constrainedStart(), ActivationEvent::deadline, ActivationEvent::deathTime(), TimeValue::isRegular(), ActivationEvent::starting, and ActivationEvent::startTime().

Referenced by Scheduler::ExecutionCtx::post().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ activity

◆ starting

◆ deadline

int64_t deadline

◆ manifestation

uint32_t manifestation

Definition at line 88 of file scheduler-invocation.hpp.

◆ isCompulsory

bool isCompulsory

Definition at line 89 of file scheduler-invocation.hpp.

+ Collaboration diagram for ActivationEvent:

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