Changeset 8ae4165 for libcfa/src/concurrency/io.cfa
- Timestamp:
- Jun 24, 2020, 2:52:49 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7bfc849
- Parents:
- c7816be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
rc7816be r8ae4165 684 684 verify( data != 0 ); 685 685 686 disable_interrupts();687 686 688 687 // Prepare the data we need … … 691 690 uint32_t cnt = *ring.submit_q.num; 692 691 uint32_t mask = *ring.submit_q.mask; 693 uint32_t off = __tls_rand(); 692 693 disable_interrupts(); 694 uint32_t off = __tls_rand(); 695 enable_interrupts( __cfaabi_dbg_ctx ); 694 696 695 697 // Loop around looking for an available spot … … 707 709 // update statistics 708 710 #if !defined(__CFA_NO_STATISTICS__) 709 __tls_stats()->io.submit_q.alloc_avg.val += len; 710 __tls_stats()->io.submit_q.alloc_avg.block += block; 711 __tls_stats()->io.submit_q.alloc_avg.cnt += 1; 711 disable_interrupts(); 712 __tls_stats()->io.submit_q.alloc_avg.val += len; 713 __tls_stats()->io.submit_q.alloc_avg.block += block; 714 __tls_stats()->io.submit_q.alloc_avg.cnt += 1; 715 enable_interrupts( __cfaabi_dbg_ctx ); 712 716 #endif 713 717 714 enable_interrupts( __cfaabi_dbg_ctx );715 718 716 719 // Success return the data
Note: See TracChangeset
for help on using the changeset viewer.