- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
re84ab3d 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 last_cpu = __kernel_getcpu(); 36 37 curr_cor = &self_cor; 37 38 self_mon.owner = &this; … … 57 58 } 58 59 59 void ^?{}( thread$& this) with( this ) {60 void ^?{}($thread& this) with( this ) { 60 61 #if defined( __CFA_WITH_VERIFY__ ) 61 62 canary = 0xDEADDEADDEADDEADp; … … 87 88 void ?{}( thread_dtor_guard_t & this, 88 89 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); 91 92 92 93 // Setup the monitor guard … … 130 131 forall( T & | is_thread(T) ) 131 132 void __thrd_start( T & this, void (*main_p)(T &) ) { 132 thread$* this_thrd = get_thread(this);133 $thread * this_thrd = get_thread(this); 133 134 134 135 disable_interrupts();
Note: See TracChangeset
for help on using the changeset viewer.