- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
rd874f59 r1f45c7d 27 27 //----------------------------------------------------------------------------- 28 28 // Thread ctors and dtors 29 void ?{}( thread$& this, const char * const name, cluster & cl, void * storage, size_t storageSize ) with( this ) {29 void ?{}($thread & this, const char * const name, cluster & cl, void * storage, size_t storageSize ) with( this ) { 30 30 context{ 0p, 0p }; 31 31 self_cor{ name, storage, storageSize }; … … 34 34 preempted = __NO_PREEMPTION; 35 35 corctx_flag = false; 36 disable_interrupts();37 36 last_cpu = __kernel_getcpu(); 38 enable_interrupts();39 37 curr_cor = &self_cor; 40 38 self_mon.owner = &this; … … 60 58 } 61 59 62 void ^?{}( thread$& this) with( this ) {60 void ^?{}($thread& this) with( this ) { 63 61 #if defined( __CFA_WITH_VERIFY__ ) 64 62 canary = 0xDEADDEADDEADDEADp; … … 90 88 void ?{}( thread_dtor_guard_t & this, 91 89 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); 94 92 95 93 // Setup the monitor guard … … 133 131 forall( T & | is_thread(T) ) 134 132 void __thrd_start( T & this, void (*main_p)(T &) ) { 135 thread$* this_thrd = get_thread(this);133 $thread * this_thrd = get_thread(this); 136 134 137 135 disable_interrupts();
Note: See TracChangeset
for help on using the changeset viewer.