Changes in src/libcfa/concurrency/kernel.c [b18830e:b462670]
- File:
-
- 1 edited
-
src/libcfa/concurrency/kernel.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel.c
rb18830e rb462670 106 106 107 107 void ?{}( thread_desc & this, current_stack_info_t * info) { 108 (this. self_cor){ info };108 (this.cor){ info }; 109 109 } 110 110 … … 115 115 void ?{}(processorCtx_t & this, processor * proc) { 116 116 (this.__cor){ "Processor" }; 117 this.__cor.starter = &mainThread->self_cor;117 this.__cor.starter = NULL; 118 118 this.proc = proc; 119 119 proc->runner = &this; … … 328 328 // if( !thrd ) return; 329 329 verify( thrd ); 330 verify( thrd-> self_cor.state != Halted );330 verify( thrd->cor.state != Halted ); 331 331 332 332 verify( disable_preempt_count > 0 ); … … 373 373 assert(thrd); 374 374 disable_interrupts(); 375 assert( thrd-> self_cor.state != Halted );375 assert( thrd->cor.state != Halted ); 376 376 this_processor->finish.action_code = Schedule; 377 377 this_processor->finish.thrd = thrd; … … 466 466 this_processor = mainProcessor; 467 467 this_thread = mainThread; 468 this_coroutine = &mainThread-> self_cor;468 this_coroutine = &mainThread->cor; 469 469 470 470 // Enable preemption … … 547 547 thread_desc * thrd = kernel_data; 548 548 549 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing task %.256s (%p)", thrd-> self_cor.name, thrd );549 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing task %.256s (%p)", thrd->cor.name, thrd ); 550 550 __lib_debug_write( STDERR_FILENO, abort_text, len ); 551 551
Note:
See TracChangeset
for help on using the changeset viewer.