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