Ignore:
Timestamp:
Feb 24, 2020, 11:52:07 AM (4 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:
ac2b598
Parents:
a8078ee
Message:

Removed attribute const on active_* routines as it is unclear how safe this is

File:
1 edited

Legend:

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

    ra8078ee r0f2c555  
    153153static inline [cluster *&, cluster *& ] __get( cluster & this ) __attribute__((const)) { return this.node.[next, prev]; }
    154154
    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; }
     155static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE
     156static inline struct cluster   * active_cluster  () { return TL_GET( this_processor )->cltr; }
    157157
    158158// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.