Changeset 0f2c555 for libcfa/src


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

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

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

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

    ra8078ee r0f2c555  
    5454void prime(T & cor);
    5555
    56 static inline struct coroutine_desc * active_coroutine() __attribute__((const)) { return TL_GET( this_thread )->curr_cor; }
     56static inline struct coroutine_desc * active_coroutine() { return TL_GET( this_thread )->curr_cor; }
    5757
    5858//-----------------------------------------------------------------------------
  • 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.