Changeset 3ce0c915 for src/libcfa/concurrency/monitor.c
- Timestamp:
- Feb 2, 2018, 4:00:09 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:
- d03fa6d
- Parents:
- 11b7028 (diff), d7d4702 (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/monitor.c
r11b7028 r3ce0c915 87 87 thread_desc * thrd = this_thread; 88 88 89 verify( disable_preempt_count > 0 );90 91 89 __cfaabi_dbg_print_safe("Kernel : %10p Entering mon %p (%p)\n", thrd, this, this->owner); 92 90 … … 117 115 // Some one else has the monitor, wait in line for it 118 116 append( this->entry_queue, thrd ); 119 120 verify( disable_preempt_count > 0 );121 117 122 118 BlockInternal( &this->lock ); … … 396 392 append( this.blocked, &waiter ); 397 393 398 verify( disable_preempt_count == 0 );399 400 394 // Lock all monitors (aggregates the locks as well) 401 395 lock_all( monitors, locks, count ); 402 403 // verifyf( disable_preempt_count == count, "Got %d, expected %d\n", disable_preempt_count, count );404 if(disable_preempt_count != count) { __cfaabi_dbg_print_buffer_decl("----------Gonna crash\n"); }405 396 406 397 // Find the next thread(s) to run … … 477 468 monitor_ctx( this.monitors, this.monitor_count ); 478 469 479 verify( disable_preempt_count == 0 );480 481 470 // Lock all monitors (aggregates the locks them as well) 482 471 lock_all( monitors, locks, count ); 483 484 // verify( disable_preempt_count == count );485 if(disable_preempt_count != count) { __cfaabi_dbg_print_buffer_decl("----------Gonna crash\n"); }486 472 487 473
Note: See TracChangeset
for help on using the changeset viewer.