Changeset 9cc0472 for src/libcfa/concurrency
- Timestamp:
- Jul 19, 2017, 12:28:59 PM (7 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:
- 3175147
- Parents:
- b826e6b
- Location:
- src/libcfa/concurrency
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine
rb826e6b r9cc0472 63 63 64 64 // Get current coroutine 65 extern volatile thread_local coroutine_desc *this_coroutine;65 extern thread_local coroutine_desc * volatile this_coroutine; 66 66 67 67 // Private wrappers for context switch and stack creation -
src/libcfa/concurrency/coroutine.c
rb826e6b r9cc0472 26 26 } 27 27 28 #include "kernel" 29 #include "libhdr.h" 28 #include "kernel_private.h" 30 29 31 30 #define __CFA_INVOKE_PRIVATE__ 32 31 #include "invoke.h" 33 32 34 extern volatile thread_local processor * this_processor;35 33 36 34 //----------------------------------------------------------------------------- -
src/libcfa/concurrency/kernel.c
rb826e6b r9cc0472 55 55 // Global state 56 56 57 volatile thread_local coroutine_desc *this_coroutine;58 volatile thread_local thread_desc *this_thread;59 volatile thread_local processor *this_processor;57 thread_local coroutine_desc * volatile this_coroutine; 58 thread_local thread_desc * volatile this_thread; 59 thread_local processor * volatile this_processor; 60 60 61 61 volatile thread_local bool preemption_in_progress = 0; -
src/libcfa/concurrency/kernel_private.h
rb826e6b r9cc0472 73 73 extern event_kernel_t * event_kernel; 74 74 75 extern volatile thread_local processor * this_processor; 76 extern volatile thread_local coroutine_desc * this_coroutine; 77 extern volatile thread_local thread_desc * this_thread; 75 extern thread_local coroutine_desc * volatile this_coroutine; 76 extern thread_local thread_desc * volatile this_thread; 77 extern thread_local processor * volatile this_processor; 78 78 79 extern volatile thread_local bool preemption_in_progress; 79 80 extern volatile thread_local unsigned short disable_preempt_count; -
src/libcfa/concurrency/thread
rb826e6b r9cc0472 54 54 } 55 55 56 extern volatile thread_local thread_desc *this_thread;56 extern thread_local thread_desc * volatile this_thread; 57 57 58 58 forall( dtype T | is_thread(T) ) -
src/libcfa/concurrency/thread.c
rb826e6b r9cc0472 87 87 88 88 void yield( void ) { 89 BlockInternal( (thread_desc 89 BlockInternal( (thread_desc*)this_thread ); 90 90 } 91 91
Note: See TracChangeset
for help on using the changeset viewer.