Changeset 5cb51502 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Apr 5, 2021, 3:18:12 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b0904bf
- Parents:
- c9ec301
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rc9ec301 r5cb51502 490 490 { 491 491 /* paranoid */ verify( publicTLS_get(this_proc_id) ); 492 bool full = publicTLS_get(this_proc_id)->full_proc; 493 if(full) disable_interrupts(); 492 disable_interrupts(); 494 493 495 494 /* paranoid */ verify( ! __preemption_enabled() ); … … 500 499 /* paranoid */ verify( ! __preemption_enabled() ); 501 500 502 if(full) enable_interrupts( __cfaabi_dbg_ctx);501 enable_interrupts_noPoll(); 503 502 /* paranoid */ verify( publicTLS_get(this_proc_id) ); 504 503 } … … 609 608 610 609 #if !defined(__CFA_NO_STATISTICS__) 611 __tls_stats()->ready.sleep.wakes++; 610 if( kernelTLS().this_stats ) { 611 __tls_stats()->ready.sleep.wakes++; 612 } 613 else { 614 __atomic_fetch_add(&this->stats->ready.sleep.wakes, 1, __ATOMIC_RELAXED); 615 } 612 616 #endif 613 617
Note: See TracChangeset
for help on using the changeset viewer.