Changes in src/libcfa/concurrency/invoke.h [17af7d1:9c31349]
- File:
-
- 1 edited
-
src/libcfa/concurrency/invoke.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.h
r17af7d1 r9c31349 38 38 }; 39 39 40 struct signal_once {41 volatile bool condition;42 struct spinlock lock;43 struct simple_thread_list blocked;44 };45 46 40 #ifdef __CFORALL__ 47 41 extern "Cforall" { … … 52 46 void ?{}(spinlock * this); 53 47 void ^?{}(spinlock * this); 54 55 void ?{}(signal_once * this);56 void ^?{}(signal_once * this);57 48 } 58 49 #endif … … 79 70 }; 80 71 72 struct monitor_desc { 73 struct spinlock lock; 74 struct thread_desc * owner; 75 struct simple_thread_list entry_queue; 76 unsigned int recursion; 77 }; 78 81 79 struct thread_desc { 82 struct coroutine_desc cor; // coroutine body used to store context83 struct signal_once terminated; // indicate if execuation state is not halted80 struct coroutine_desc cor; // coroutine body used to store context 81 struct monitor_desc mon; // monitor body used for mutual exclusion 84 82 struct thread_desc * next; // instrusive link field for threads 85 83 };
Note:
See TracChangeset
for help on using the changeset viewer.