Changeset 7b28e4a for src/libcfa/concurrency/preemption.c
- Timestamp:
- Jun 8, 2018, 1:40:52 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, with_gc
- Children:
- 332d3c2, 9c32e21
- Parents:
- 90cedbdd (diff), beefc34c (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
r90cedbdd r7b28e4a 260 260 static void preempt( processor * this ) { 261 261 sigval_t value = { PREEMPT_NORMAL }; 262 pthread_sigqueue( this->kernel_thread, SIGUSR1, value );263 }264 265 // kill wrapper : signal a processor266 void terminate(processor * this) {267 disable_interrupts();268 __atomic_store_n(&this->do_terminate, true, __ATOMIC_SEQ_CST);269 wake( this );270 sigval_t value = { PREEMPT_TERMINATE };271 enable_interrupts( __cfaabi_dbg_ctx );272 262 pthread_sigqueue( this->kernel_thread, SIGUSR1, value ); 273 263 }
Note: See TracChangeset
for help on using the changeset viewer.