Changeset 0f2c555


Ignore:
Timestamp:
Feb 24, 2020, 11:52:07 AM (20 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
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.