Changeset 8c50aed for libcfa/src/concurrency/kernel.hfa
- Timestamp:
- Feb 21, 2020, 3:33:14 PM (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:
- a505021
- Parents:
- b0c7419
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
rb0c7419 r8c50aed 108 108 static inline void ?{}(processor & this, const char * name) { this{name, *mainCluster }; } 109 109 110 static inline [processor *&, processor *& ] __get( processor & this ) { 111 return this.node.[next, prev]; 112 } 110 static inline [processor *&, processor *& ] __get( processor & this ) /*__attribute__((const))*/ { return this.node.[next, prev]; } 113 111 114 112 //----------------------------------------------------------------------------- … … 153 151 static inline void ?{} (cluster & this, const char * name) { this{name, default_preemption()}; } 154 152 155 static inline [cluster *&, cluster *& ] __get( cluster & this ) { 156 return this.node.[next, prev]; 157 } 153 static inline [cluster *&, cluster *& ] __get( cluster & this ) /*__attribute__((const))*/ { return this.node.[next, prev]; } 158 154 159 static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE160 static inline struct cluster * active_cluster () { return TL_GET( this_processor )->cltr; }155 static inline struct processor * active_processor() __attribute__((const)) { return TL_GET( this_processor ); } // UNSAFE 156 static inline struct cluster * active_cluster () __attribute__((const)) { return TL_GET( this_processor )->cltr; } 161 157 162 158 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.