Changeset 242a902 for src/libcfa/concurrency/preemption.c
- Timestamp:
- Jul 18, 2017, 4:35: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, resolv-new, with_gc
- Children:
- f19339e
- Parents:
- 795d450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/preemption.c
r795d450 r242a902 230 230 } 231 231 232 void ?{}( preemption_scope *this, processor * proc ) {233 ( &this->alarm){ proc };234 this ->proc = proc;235 this ->proc->preemption_alarm = &this->alarm;236 update_preemption( this ->proc, this->proc->preemption );237 } 238 239 void ^?{}( preemption_scope *this ) {232 void ?{}( preemption_scope & this, processor * proc ) { 233 (this.alarm){ proc }; 234 this.proc = proc; 235 this.proc->preemption_alarm = &this.alarm; 236 update_preemption( this.proc, this.proc->preemption ); 237 } 238 239 void ^?{}( preemption_scope & this ) { 240 240 disable_interrupts(); 241 241 242 update_preemption( this ->proc, 0 );242 update_preemption( this.proc, 0 ); 243 243 } 244 244
Note: See TracChangeset
for help on using the changeset viewer.