Changes in src/libcfa/concurrency/invoke.h [afd550c:de6319f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.h
rafd550c rde6319f 18 18 #include "bits/locks.h" 19 19 20 #define TL_GET( member ) kernelT LS.member21 #define TL_SET( member, value ) kernelT LS.member = value;20 #define TL_GET( member ) kernelThreadData.member 21 #define TL_SET( member, value ) kernelThreadData.member = value; 22 22 23 23 #ifdef __cforall … … 44 44 volatile bool in_progress; 45 45 } preemption_state; 46 } kernelT LS;46 } kernelThreadData; 47 47 } 48 48 49 49 static inline struct coroutine_desc * volatile active_coroutine() { return TL_GET( this_coroutine ); } 50 static inline struct thread_desc * volatile active_thread () { return TL_GET( this_thread); }51 static inline struct processor * volatile active_processor() { return TL_GET( this_processor ); } // UNSAFE50 static inline struct thread_desc * volatile active_thread() { return TL_GET( this_thread ); } 51 static inline struct processor * volatile active_processor() { return TL_GET( this_processor ); } 52 52 #endif 53 53
Note:
See TracChangeset
for help on using the changeset viewer.