Ignore:
Timestamp:
Feb 21, 2020, 3:33:14 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

Some clean-up and renaming, also adding attribute((const/pure)) where relevant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.hfa

    rb0c7419 r8c50aed  
    108108static inline void  ?{}(processor & this, const char * name) { this{name, *mainCluster }; }
    109109
    110 static inline [processor *&, processor *& ] __get( processor & this ) {
    111         return this.node.[next, prev];
    112 }
     110static inline [processor *&, processor *& ] __get( processor & this ) /*__attribute__((const))*/ { return this.node.[next, prev]; }
    113111
    114112//-----------------------------------------------------------------------------
     
    153151static inline void ?{} (cluster & this, const char * name)        { this{name, default_preemption()}; }
    154152
    155 static inline [cluster *&, cluster *& ] __get( cluster & this ) {
    156         return this.node.[next, prev];
    157 }
     153static inline [cluster *&, cluster *& ] __get( cluster & this ) /*__attribute__((const))*/ { return this.node.[next, prev]; }
    158154
    159 static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE
    160 static inline struct cluster   * active_cluster  () { return TL_GET( this_processor )->cltr; }
     155static inline struct processor * active_processor() __attribute__((const)) { return TL_GET( this_processor ); } // UNSAFE
     156static inline struct cluster   * active_cluster  () __attribute__((const)) { return TL_GET( this_processor )->cltr; }
    161157
    162158// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.