Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::SuspendedDelegate Class Reference

#include <SuspendedDelegate.hpp>

Inheritance diagram for Grappa::SuspendedDelegate:
Grappa::Worker

Public Member Functions

 SuspendedDelegate ()
 
template<typename F >
void setup (F func)
 
- Public Member Functions inherited from Grappa::Worker
 Worker ()
 
intptr_t stack_remaining ()
 
void prefetch ()
 prefetch the Worker execution state More...
 

Static Public Member Functions

template<typename F >
static SuspendedDelegatecreate (F f)
 

Friends

template<typename F >
SuspendedDelegatenew_suspended_delegate (F)
 
void invoke (SuspendedDelegate *)
 

Additional Inherited Members

- Public Attributes inherited from Grappa::Worker
void * stack
 
Workernext
 
union {
   struct {
      int   running: 1
 
      int   suspended: 1
 
      int   idle: 1
 
   } 
 
   int8_t   run_state_raw_
 
}; 
 
Schedulersched
 
bool done
 
void * base
 
size_t ssize
 
threadid_t id
 
Workertracking_prev
 
Workertracking_next
 

Detailed Description

Definition at line 36 of file SuspendedDelegate.hpp.

Constructor & Destructor Documentation

Grappa::SuspendedDelegate::SuspendedDelegate ( )
inline

Definition at line 45 of file SuspendedDelegate.hpp.

Member Function Documentation

template<typename F >
SuspendedDelegate * Grappa::SuspendedDelegate::create ( f)
static

Definition at line 72 of file SuspendedDelegate.hpp.

template<typename F >
void Grappa::SuspendedDelegate::setup ( func)
inline

Definition at line 54 of file SuspendedDelegate.hpp.

Friends And Related Function Documentation

void invoke ( SuspendedDelegate c)
friend

Definition at line 85 of file SuspendedDelegate.hpp.

template<typename F >
SuspendedDelegate* new_suspended_delegate ( )
friend

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