Changeset 0f2c555 for libcfa/src
- Timestamp:
- Feb 24, 2020, 11:52:07 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ac2b598
- Parents:
- a8078ee
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
ra8078ee r0f2c555 54 54 void prime(T & cor); 55 55 56 static inline struct coroutine_desc * active_coroutine() __attribute__((const)){ return TL_GET( this_thread )->curr_cor; }56 static inline struct coroutine_desc * active_coroutine() { return TL_GET( this_thread )->curr_cor; } 57 57 58 58 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/kernel.hfa
ra8078ee r0f2c555 153 153 static inline [cluster *&, cluster *& ] __get( cluster & this ) __attribute__((const)) { return this.node.[next, prev]; } 154 154 155 static inline struct processor * active_processor() __attribute__((const)){ return TL_GET( this_processor ); } // UNSAFE156 static inline struct cluster * active_cluster () __attribute__((const)){ return TL_GET( this_processor )->cltr; }155 static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE 156 static inline struct cluster * active_cluster () { return TL_GET( this_processor )->cltr; } 157 157 158 158 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.