Changeset 8fcbb4c for src/libcfa/concurrency/kernel
- Timestamp:
- Feb 9, 2017, 4:51:40 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:
- 8d4f7fe
- Parents:
- 84e2523
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/libcfa/concurrency/kernel ¶
r84e2523 r8fcbb4c 30 30 struct cluster { 31 31 simple_thread_list ready_queue; 32 pthread_spinlock_t lock;32 // pthread_spinlock_t lock; 33 33 }; 34 34 … … 38 38 //----------------------------------------------------------------------------- 39 39 // Processor 40 enum ProcessorAction { 41 Reschedule, 42 NoAction 43 }; 44 40 45 struct processor { 41 struct processorCtx_t * ctx;46 struct processorCtx_t * runner; 42 47 cluster * cltr; 43 48 coroutine * current_coroutine; … … 46 51 simple_lock lock; 47 52 volatile bool terminated; 53 ProcessorAction thread_action; 48 54 }; 49 55
Note: See TracChangeset
for help on using the changeset viewer.