Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
Grappa::Worker Class Reference

Worker/coroutine. More...

#include <Worker.hpp>

Inheritance diagram for Grappa::Worker:

Public Member Functions

 Worker ()
intptr_t stack_remaining ()
void prefetch ()
 prefetch the Worker execution state More...

Public Attributes

void * stack
union {
   struct {
      int   running: 1
      int   suspended: 1
      int   idle: 1
   int8_t   run_state_raw_
bool done
void * base
size_t ssize
threadid_t id

Detailed Description


Definition at line 72 of file Worker.hpp.

Constructor & Destructor Documentation

Grappa::Worker::Worker ( )

Definition at line 77 of file Worker.hpp.

Member Function Documentation

void Grappa::Worker::prefetch ( )

prefetch the Worker execution state

Definition at line 146 of file Worker.hpp.

intptr_t Grappa::Worker::stack_remaining ( )

Definition at line 131 of file Worker.hpp.

Member Data Documentation

union { ... }
void* Grappa::Worker::base

Definition at line 106 of file Worker.hpp.

bool Grappa::Worker::done

Definition at line 102 of file Worker.hpp.

threadid_t Grappa::Worker::id

Definition at line 109 of file Worker.hpp.

int Grappa::Worker::idle

Definition at line 95 of file Worker.hpp.

Worker* Grappa::Worker::next

Definition at line 86 of file Worker.hpp.

int8_t Grappa::Worker::run_state_raw_

Definition at line 97 of file Worker.hpp.

int Grappa::Worker::running

Definition at line 93 of file Worker.hpp.

Scheduler* Grappa::Worker::sched

Definition at line 101 of file Worker.hpp.

size_t Grappa::Worker::ssize

Definition at line 108 of file Worker.hpp.

void* Grappa::Worker::stack

Definition at line 82 of file Worker.hpp.

int Grappa::Worker::suspended

Definition at line 94 of file Worker.hpp.

Worker* Grappa::Worker::tracking_next

Definition at line 123 of file Worker.hpp.

Worker* Grappa::Worker::tracking_prev

Definition at line 122 of file Worker.hpp.

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