Changeset 78a580d for libcfa/src/concurrency/io
- Timestamp:
- Mar 22, 2022, 3:28:29 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- ff7b2de
- Parents:
- 8f01ad71
- Location:
- libcfa/src/concurrency/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
r8f01ad71 r78a580d 60 60 #include "fstream.hfa" 61 61 #include "kernel/private.hfa" 62 #include "limits.hfa" 62 63 #include "thread.hfa" 63 64 #pragma GCC diagnostic pop … … 215 216 // completion queue 216 217 cq.lock = 0; 218 cq.id = MAX; 219 cq.ts = rdtscl(); 217 220 cq.head = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.head); 218 221 cq.tail = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.tail); -
libcfa/src/concurrency/io/types.hfa
r8f01ad71 r78a580d 79 79 struct __cmp_ring_t { 80 80 volatile bool lock; 81 82 unsigned id; 83 84 unsigned long long ts; 81 85 82 86 // Head and tail of the ring
Note: See TracChangeset
for help on using the changeset viewer.