Changes in src/libcfa/concurrency/invoke.h [348006f:cc7f4b1]
- File:
-
- 1 edited
-
src/libcfa/concurrency/invoke.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.h
r348006f rcc7f4b1 35 35 36 36 struct simple_thread_list { 37 struct thread _desc* head;38 struct thread _desc** tail;37 struct thread * head; 38 struct thread ** tail; 39 39 }; 40 40 … … 48 48 extern "Cforall" { 49 49 void ?{}( struct simple_thread_list * ); 50 void append( struct simple_thread_list *, struct thread _desc* );51 struct thread _desc* pop_head( struct simple_thread_list * );50 void append( struct simple_thread_list *, struct thread * ); 51 struct thread * pop_head( struct simple_thread_list * ); 52 52 53 53 void ?{}(spinlock * this); … … 71 71 enum coroutine_state { Halted, Start, Inactive, Active, Primed }; 72 72 73 struct coroutine _desc{73 struct coroutine { 74 74 struct coStack_t stack; 75 75 const char *name; // textual name for coroutine/task, initialized by uC++ generated code 76 76 int errno_; // copy of global UNIX variable errno 77 77 enum coroutine_state state; // current execution status for coroutine 78 struct coroutine _desc*starter; // first coroutine to resume this one79 struct coroutine _desc*last; // last coroutine to resume this one78 struct coroutine *starter; // first coroutine to resume this one 79 struct coroutine *last; // last coroutine to resume this one 80 80 }; 81 81 82 struct thread _desc{83 struct coroutine _descc; // coroutine body used to store context82 struct thread { 83 struct coroutine c; // coroutine body used to store context 84 84 struct signal_once terminated; // indicate if execuation state is not halted 85 struct thread _desc* next; // instrusive link field for threads85 struct thread * next; // instrusive link field for threads 86 86 }; 87 87
Note:
See TracChangeset
for help on using the changeset viewer.