Changeset b6838214 for src/libcfa/concurrency
- Timestamp:
- Jan 23, 2018, 5:46:43 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:
- 258e6ad5
- Parents:
- b158d8f (diff), 15d248e (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. - Location:
- src/libcfa/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
rb158d8f rb6838214 534 534 __lock_size_t actual_count = aggregate( mon_storage, mask ); 535 535 536 __cfaabi_dbg_print_buffer_decl( "Kernel : waitfor % d (s: %d, m: %d)\n", actual_count, mask.size, (__lock_size_t)max);536 __cfaabi_dbg_print_buffer_decl( "Kernel : waitfor %"PRIdFAST16" (s: %"PRIdFAST16", m: %"PRIdFAST16")\n", actual_count, mask.size, (__lock_size_t)max); 537 537 538 538 if(actual_count == 0) return; … … 575 575 monitor_save; 576 576 577 __cfaabi_dbg_print_buffer_local( "Kernel : baton of % dmonitors : ", count );577 __cfaabi_dbg_print_buffer_local( "Kernel : baton of %"PRIdFAST16" monitors : ", count ); 578 578 #ifdef __CFA_DEBUG_PRINT__ 579 579 for( int i = 0; i < count; i++) { -
src/libcfa/concurrency/preemption.c
rb158d8f rb6838214 303 303 // Check if it is safe to preempt here 304 304 if( !preemption_ready() ) { return; } 305 306 // __cfaabi_dbg_print_buffer_decl(" KERNEL: preempting core %p (%p).\n", this_processor, this_thread); 305 307 306 308 preemption_in_progress = true; // Sync flag : prevent recursive calls to the signal handler
Note: See TracChangeset
for help on using the changeset viewer.