Changeset 633a642 for src/libcfa/concurrency/preemption.c
- Timestamp:
- Jan 30, 2018, 4:52:54 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1449d83, 5ff188f
- Parents:
- 320eb73a (diff), 7416d46a (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
-
src/libcfa/concurrency/preemption.c
r320eb73a r633a642 60 60 static pthread_t alarm_thread; // pthread handle to alarm thread 61 61 62 void ?{}(event_kernel_t & this) {63 (this.alarms){};64 (this.lock){};62 void ?{}(event_kernel_t & this) with( this ) { 63 alarms{}; 64 lock{}; 65 65 } 66 66 … … 149 149 // If counter reaches 0, execute any pending CtxSwitch 150 150 void enable_interrupts( __cfaabi_dbg_ctx_param ) { 151 processor * proc= this_processor; // Cache the processor now since interrupts can start happening after the atomic add151 processor * proc = this_processor; // Cache the processor now since interrupts can start happening after the atomic add 152 152 thread_desc * thrd = this_thread; // Cache the thread now since interrupts can start happening after the atomic add 153 153
Note: See TracChangeset
for help on using the changeset viewer.