Changeset 9c31349 for src/libcfa/concurrency/invoke.h
- Timestamp:
- Mar 21, 2017, 3:11:30 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- da6d4566
- Parents:
- cb0e6de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.h
rcb0e6de 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 … … 88 79 struct thread_desc { 89 80 struct coroutine_desc cor; // coroutine body used to store context 90 struct monitor_desc mon; 91 struct signal_once terminated; // indicate if execuation state is not halted 81 struct monitor_desc mon; // monitor body used for mutual exclusion 92 82 struct thread_desc * next; // instrusive link field for threads 93 83 };
Note: See TracChangeset
for help on using the changeset viewer.