Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/thread.cfa

    rd874f59 r1f45c7d  
    2727//-----------------------------------------------------------------------------
    2828// Thread ctors and dtors
    29 void ?{}(thread$ & this, const char * const name, cluster & cl, void * storage, size_t storageSize ) with( this ) {
     29void ?{}($thread & this, const char * const name, cluster & cl, void * storage, size_t storageSize ) with( this ) {
    3030        context{ 0p, 0p };
    3131        self_cor{ name, storage, storageSize };
     
    3434        preempted = __NO_PREEMPTION;
    3535        corctx_flag = false;
    36         disable_interrupts();
    3736        last_cpu = __kernel_getcpu();
    38         enable_interrupts();
    3937        curr_cor = &self_cor;
    4038        self_mon.owner = &this;
     
    6058}
    6159
    62 void ^?{}(thread$& this) with( this ) {
     60void ^?{}($thread& this) with( this ) {
    6361        #if defined( __CFA_WITH_VERIFY__ )
    6462                canary = 0xDEADDEADDEADDEADp;
     
    9088void ?{}( thread_dtor_guard_t & this,
    9189                T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) {
    92         monitor$ * m = get_monitor(thrd);
    93         thread$ * desc = get_thread(thrd);
     90        $monitor * m = get_monitor(thrd);
     91        $thread * desc = get_thread(thrd);
    9492
    9593        // Setup the monitor guard
     
    133131forall( T & | is_thread(T) )
    134132void __thrd_start( T & this, void (*main_p)(T &) ) {
    135         thread$ * this_thrd = get_thread(this);
     133        $thread * this_thrd = get_thread(this);
    136134
    137135        disable_interrupts();
Note: See TracChangeset for help on using the changeset viewer.