Changeset 949339b for libcfa/src/concurrency/thread.cfa
- Timestamp:
- Sep 27, 2021, 2:09:55 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- cc287800
- Parents:
- 4e28d2e9 (diff), 056cbdb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
r4e28d2e9 r949339b 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.