- File:
-
- 1 edited
-
libcfa/src/concurrency/thread.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
rd874f59 r24e321c 25 25 #include "invoke.h" 26 26 27 uint64_t thread_rand(); 28 27 29 //----------------------------------------------------------------------------- 28 30 // Thread ctors and dtors … … 34 36 preempted = __NO_PREEMPTION; 35 37 corctx_flag = false; 36 disable_interrupts();37 last_cpu = __kernel_getcpu();38 enable_interrupts();39 38 curr_cor = &self_cor; 40 39 self_mon.owner = &this; … … 44 43 link.next = 0p; 45 44 link.ts = -1llu; 46 preferred = -1u;45 preferred = ready_queue_new_preferred(); 47 46 last_proc = 0p; 48 47 #if defined( __CFA_WITH_VERIFY__ ) … … 141 140 /* paranoid */ verify( this_thrd->context.SP ); 142 141 143 schedule_thread$( this_thrd );142 schedule_thread$( this_thrd, UNPARK_LOCAL ); 144 143 enable_interrupts(); 145 144 }
Note:
See TracChangeset
for help on using the changeset viewer.