Changeset eafec07
- Timestamp:
- Aug 4, 2020, 5:27:00 PM (5 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:
- 85eafc5
- Parents:
- 53ee27e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/concurrency/io.cfa ¶
r53ee27e reafec07 244 244 uint32_t idx = (i + off) & mask; 245 245 struct io_uring_sqe * sqe = &ring.submit_q.sqes[idx]; 246 volatile uint64_t * udata = &sqe->user_data;246 volatile uint64_t * udata = (volatile uint64_t *)&sqe->user_data; 247 247 248 248 if( *udata == expected && … … 319 319 __io_data & ring = *ctx->thrd.ring; 320 320 // Get now the data we definetely need 321 uint32_t * const tail = ring.submit_q.tail;321 volatile uint32_t * const tail = ring.submit_q.tail; 322 322 const uint32_t mask = *ring.submit_q.mask; 323 323 … … 366 366 } 367 367 368 /* paranoid */ verify( ret > 0 || (ring.ring_flags & IORING_SETUP_SQPOLL) );368 /* paranoid */ verify( ret > 0 || to_submit == 0 || (ring.ring_flags & IORING_SETUP_SQPOLL) ); 369 369 370 370 // Release the consumed SQEs
Note: See TracChangeset
for help on using the changeset viewer.