Changes in src/libcfa/concurrency/kernel.c [c40e7c5:381fdee]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel.c
rc40e7c5 r381fdee 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) with( this ){144 void ?{}(processor & this, cluster * cltr) { 147 145 this.cltr = cltr; 148 t erminated{ 0 };149 do_terminate = false;150 preemption_alarm = NULL;151 pending_preemption = false;146 this.terminated{ 0 }; 147 this.do_terminate = false; 148 this.preemption_alarm = NULL; 149 this.pending_preemption = false; 152 150 153 151 start( &this ); 154 152 } 155 153 156 void ?{}(processor & this, cluster * cltr, processorCtx_t & runner) with( this ){154 void ?{}(processor & this, cluster * cltr, processorCtx_t & runner) { 157 155 this.cltr = cltr; 158 t erminated{ 0 };159 do_terminate = false;160 preemption_alarm = NULL;161 pending_preemption = false;162 kernel_thread = pthread_self();156 this.terminated{ 0 }; 157 this.do_terminate = false; 158 this.preemption_alarm = NULL; 159 this.pending_preemption = false; 160 this.kernel_thread = pthread_self(); 163 161 164 162 this.runner = &runner; … … 170 168 if( ! do_terminate ) { 171 169 __cfaabi_dbg_print_safe("Kernel : core %p signaling termination\n", &this); 172 terminate(&this);170 do_terminate = true; 173 171 P( terminated ); 174 172 pthread_join( kernel_thread, NULL );
Note: See TracChangeset
for help on using the changeset viewer.