Changeset 53a8e68 for src/libcfa/concurrency
- Timestamp:
- Jul 21, 2017, 3:21:44 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:
- bff227f
- Parents:
- cb43451
- Location:
- src/libcfa/concurrency
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
rcb43451 r53a8e68 78 78 79 79 void ^?{}(coStack_t& this) { 80 if ( ! this ->userStack ) {80 if ( ! this.userStack ) { 81 81 LIB_DEBUG_DO( 82 82 if ( mprotect( this.storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) { -
src/libcfa/concurrency/kernel.c
rcb43451 r53a8e68 169 169 LIB_DEBUG_PRINT_SAFE("Kernel : core %p signaling termination\n", &this); 170 170 this.is_terminated = true; 171 P( this.terminated );171 P( &this.terminated ); 172 172 pthread_join( this.kernel_thread, NULL ); 173 173 } … … 468 468 // (the coroutine that contains the processing control flow) 469 469 systemProcessor = (system_proc_t *)&systemProcessorStorage; 470 systemProcessor{ systemCluster, (processorCtx_t *)&systemProcessorCtxStorage };470 (*systemProcessor){ systemCluster, (processorCtx_t *)&systemProcessorCtxStorage }; 471 471 472 472 // Add the main thread to the ready queue -
src/libcfa/concurrency/monitor.c
rcb43451 r53a8e68 203 203 __condition_criterion_t criteria[count]; 204 204 for(int i = 0; i < count; i++) { 205 ( &criteria[i]){ this->monitors[i], &waiter };205 (criteria[i]){ this->monitors[i], &waiter }; 206 206 // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] ); 207 207 } … … 315 315 __condition_criterion_t criteria[count]; 316 316 for(int i = 0; i < count; i++) { 317 ( &criteria[i]){ this->monitors[i], &waiter };317 (criteria[i]){ this->monitors[i], &waiter }; 318 318 // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] ); 319 319 push( &criteria[i].target->signal_stack, &criteria[i] ); -
src/libcfa/concurrency/thread.c
rcb43451 r53a8e68 36 36 (this.cor){}; 37 37 this.cor.name = "Anonymous Coroutine"; 38 this.mon.owner = this;38 this.mon.owner = &this; 39 39 this.mon.recursion = 1; 40 40 this.next = NULL;
Note: See TracChangeset
for help on using the changeset viewer.