Ignore:
File:
1 edited

Legend:

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

    re84ab3d 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        last_cpu = __kernel_getcpu();
    3637        curr_cor = &self_cor;
    3738        self_mon.owner = &this;
     
    5758}
    5859
    59 void ^?{}(thread$& this) with( this ) {
     60void ^?{}($thread& this) with( this ) {
    6061        #if defined( __CFA_WITH_VERIFY__ )
    6162                canary = 0xDEADDEADDEADDEADp;
     
    8788void ?{}( thread_dtor_guard_t & this,
    8889                T & thrd, void(*cancelHandler)(ThreadCancelled(T) &)) {
    89         monitor$ * m = get_monitor(thrd);
    90         thread$ * desc = get_thread(thrd);
     90        $monitor * m = get_monitor(thrd);
     91        $thread * desc = get_thread(thrd);
    9192
    9293        // Setup the monitor guard
     
    130131forall( T & | is_thread(T) )
    131132void __thrd_start( T & this, void (*main_p)(T &) ) {
    132         thread$ * this_thrd = get_thread(this);
     133        $thread * this_thrd = get_thread(this);
    133134
    134135        disable_interrupts();
Note: See TracChangeset for help on using the changeset viewer.