Changeset 9d47c1f for libcfa/src/concurrency/io
- Timestamp:
- Sep 6, 2023, 3:44:03 PM (10 months ago)
- Branches:
- master
- Children:
- cb0bcf1
- Parents:
- 92d8cda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/types.hfa
r92d8cda r9d47c1f 24 24 25 25 #include "bits/locks.hfa" 26 #include "bits/queue.hfa"27 26 #include "iofwd.hfa" 28 27 #include "kernel/fwd.hfa" 29 28 30 29 #if defined(CFA_HAVE_LINUX_IO_URING_H) 31 #include "bits/sequence.hfa"32 30 #include "monitor.hfa" 33 31 … … 120 118 struct __outstanding_io { 121 119 // intrusive link fields 122 inline Colable;120 inline dlink(__outstanding_io); 123 121 124 122 // primitive on which to block until the io is processed 125 123 oneshot waitctx; 126 124 }; 127 static inline __outstanding_io *& Next( __outstanding_io * n ) { return (__outstanding_io *)Next( (Colable *)n ); } 125 P9_EMBEDDED( __outstanding_io, dlink(__outstanding_io) ) 128 126 129 127 // queue of operations that are outstanding … … 134 132 135 133 // the actual queue 136 Queue(__outstanding_io) queue;134 dlist(__outstanding_io) queue; 137 135 138 136 // volatile used to avoid the need for taking the lock if it's empty
Note: See TracChangeset
for help on using the changeset viewer.