Changeset 7a052e34 for src/libcfa/concurrency/kernel.c
- Timestamp:
- Feb 12, 2018, 3:49:04 PM (6 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:
- 54c9000
- Parents:
- 1dcd52a3 (diff), ff2d1139 (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/kernel.c
r1dcd52a3 r7a052e34 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Feb 6 21:51:26201813 // Update Count : 412 // Last Modified On : Thu Feb 8 23:52:19 2018 13 // Update Count : 5 14 14 // 15 15 16 16 //C Includes 17 17 #include <stddef.h> 18 #define ftype `ftype`19 18 extern "C" { 20 19 #include <stdio.h> … … 24 23 #include <unistd.h> 25 24 } 26 #undef ftype27 25 28 26 //CFA Includes … … 144 142 } 145 143 146 void ?{}(processor & this, cluster * cltr) {144 void ?{}(processor & this, cluster * cltr) with( this ) { 147 145 this.cltr = cltr; 148 t his.terminated{ 0 };149 this.do_terminate = false;150 this.preemption_alarm = NULL;151 this.pending_preemption = false;146 terminated{ 0 }; 147 do_terminate = false; 148 preemption_alarm = NULL; 149 pending_preemption = false; 152 150 153 151 start( &this ); 154 152 } 155 153 156 void ?{}(processor & this, cluster * cltr, processorCtx_t & runner) {154 void ?{}(processor & this, cluster * cltr, processorCtx_t & runner) with( this ) { 157 155 this.cltr = cltr; 158 t his.terminated{ 0 };159 this.do_terminate = false;160 this.preemption_alarm = NULL;161 this.pending_preemption = false;162 this.kernel_thread = pthread_self();156 terminated{ 0 }; 157 do_terminate = false; 158 preemption_alarm = NULL; 159 pending_preemption = false; 160 kernel_thread = pthread_self(); 163 161 164 162 this.runner = &runner;
Note: See TracChangeset
for help on using the changeset viewer.