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

#include <ExecutionContext.h>

+ Collaboration diagram for ExecutionContextState:

Public Member Functions

 ExecutionContextState (ExecutionContext context=ExecutionContext::WaitableThread)
 
ExecutionContext current () const
 
ExecutionContext enter (ExecutionContext context)
 
void restore (ExecutionContext context)
 
void reset ()
 

Private Attributes

ExecutionContext m_Context
 

Detailed Description

A small Thread-state value with explicit nested save/restore semantics.

Definition at line 35 of file ExecutionContext.h.

Constructor & Destructor Documentation

◆ ExecutionContextState()

ExecutionContextState::ExecutionContextState ( ExecutionContext  context = ExecutionContext::WaitableThread)
inline

Definition at line 37 of file ExecutionContext.h.

Member Function Documentation

◆ current()

ExecutionContext ExecutionContextState::current ( ) const
inline

Definition at line 40 of file ExecutionContext.h.

◆ enter()

ExecutionContext ExecutionContextState::enter ( ExecutionContext  context)
inline

Replaces the current context and returns the value to restore.

Definition at line 45 of file ExecutionContext.h.

◆ reset()

void ExecutionContextState::reset ( )
inline

Definition at line 55 of file ExecutionContext.h.

◆ restore()

void ExecutionContextState::restore ( ExecutionContext  context)
inline

Definition at line 51 of file ExecutionContext.h.

Member Data Documentation

◆ m_Context

ExecutionContext ExecutionContextState::m_Context
private

Definition at line 60 of file ExecutionContext.h.


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