- File:
-
- 1 edited
-
src/libcfa/concurrency/monitor.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor.c
rd0a045c7 r2e9aed4 87 87 thread_desc * thrd = this_thread; 88 88 89 verify( disable_preempt_count > 0 ); 90 89 91 __cfaabi_dbg_print_safe("Kernel : %10p Entering mon %p (%p)\n", thrd, this, this->owner); 90 92 … … 115 117 // Some one else has the monitor, wait in line for it 116 118 append( this->entry_queue, thrd ); 119 120 verify( disable_preempt_count > 0 ); 117 121 118 122 BlockInternal( &this->lock ); … … 392 396 append( this.blocked, &waiter ); 393 397 398 verify( disable_preempt_count == 0 ); 399 394 400 // Lock all monitors (aggregates the locks as well) 395 401 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"); } 396 405 397 406 // Find the next thread(s) to run … … 468 477 monitor_ctx( this.monitors, this.monitor_count ); 469 478 479 verify( disable_preempt_count == 0 ); 480 470 481 // Lock all monitors (aggregates the locks them as well) 471 482 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"); } 472 486 473 487
Note:
See TracChangeset
for help on using the changeset viewer.