Changeset a0dbf20 for libcfa/src/concurrency/io
- Timestamp:
- Aug 30, 2022, 6:30:32 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 4858a88
- Parents:
- a8dd247 (diff), 01ba701 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- libcfa/src/concurrency/io
- Files:
-
- 2 edited
-
call.cfa.in (modified) (1 diff)
-
setup.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/call.cfa.in
ra8dd247 ra0dbf20 202 202 struct io_context$ * ctx = cfa_io_allocate( &sqe, &idx, 1 ); 203 203 204 memset(sqe, 0, sizeof(*sqe)); 204 205 sqe->opcode = IORING_OP_{op}; 206 sqe->flags = sflags; 205 207 sqe->user_data = (uintptr_t)&future; 206 sqe->flags = sflags; 207 sqe->ioprio = 0; 208 sqe->fd = 0; 209 sqe->off = 0; 210 sqe->addr = 0; 211 sqe->len = 0; 212 sqe->fsync_flags = 0; 213 sqe->__pad2[0] = 0; 214 sqe->__pad2[1] = 0; 215 sqe->__pad2[2] = 0;{body} 208 {body} 216 209 217 210 asm volatile("": : :"memory"); -
libcfa/src/concurrency/io/setup.cfa
ra8dd247 ra0dbf20 228 228 229 229 #if !defined(CFA_WITH_IO_URING_IDLE) 230 { 230 231 // Step 4 : eventfd 231 232 __cfadbg_print_safe(io_core, "Kernel I/O : registering %d for completion with ring %d\n", procfd, fd); … … 237 238 238 239 __cfadbg_print_safe(io_core, "Kernel I/O : registered %d for completion with ring %d\n", procfd, fd); 239 #endif 240 240 } 241 #endif 242 243 // TODO: implement a proper version of this. 244 // I have not found a better maximum that works in general but users should be able to configure it 245 // the same way they configure other I/O options 241 246 // #if defined(CFA_HAVE_IORING_REGISTER_IOWQ_MAX_WORKERS) 247 // { 242 248 // // Step 5 : max worker count 243 249 // __cfadbg_print_safe(io_core, "Kernel I/O : lmiting max workers for ring %d\n", fd); … … 252 258 253 259 // __cfadbg_print_safe(io_core, "Kernel I/O : lmited max workers for ring %d\n", fd); 260 // } 254 261 // #endif 255 262
Note:
See TracChangeset
for help on using the changeset viewer.