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