Changeset a757ba1 for libcfa/src/concurrency/kernel
- Timestamp:
- Nov 10, 2022, 12:17:20 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 639e4fc
- Parents:
- 6a4ef0c
- Location:
- libcfa/src/concurrency/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/private.hfa
r6a4ef0c ra757ba1 41 41 } 42 42 43 // Defines whether or not we *want* to use io_uring_enter as the idle_sleep blocking call44 // #define CFA_WANT_IO_URING_IDLE45 46 // Defines whether or not we *can* use io_uring_enter as the idle_sleep blocking call47 #if defined(CFA_WANT_IO_URING_IDLE) && defined(CFA_HAVE_LINUX_IO_URING_H)48 #if defined(CFA_HAVE_IORING_OP_READ) || (defined(CFA_HAVE_READV) && defined(CFA_HAVE_IORING_OP_READV))49 #define CFA_WITH_IO_URING_IDLE50 #endif51 #endif52 43 // #define READYQ_USE_LINEAR_AVG 53 44 #define READYQ_USE_LOGDBL_AVG -
libcfa/src/concurrency/kernel/startup.cfa
r6a4ef0c ra757ba1 115 115 KERNEL_STORAGE(thread$, mainThread); 116 116 KERNEL_STORAGE(__stack_t, mainThreadCtx); 117 // KERNEL_STORAGE(__scheduler_RWLock_t, __scheduler_lock);118 KERNEL_STORAGE(eventfd_t, mainIdleEventFd);119 KERNEL_STORAGE(io_future_t, mainIdleFuture);120 117 #if !defined(__CFA_NO_STATISTICS__) 121 118 KERNEL_STORAGE(__stats_t, mainProcStats); … … 235 232 (*mainProcessor){}; 236 233 237 mainProcessor->idle_wctx.rdbuf = &storage_mainIdleEventFd;238 mainProcessor->idle_wctx.ftr = (io_future_t*)&storage_mainIdleFuture;239 /* paranoid */ verify( sizeof(storage_mainIdleEventFd) == sizeof(eventfd_t) );240 241 234 __cfa_io_start( mainProcessor ); 242 235 register_tls( mainProcessor ); … … 384 377 register_tls( proc ); 385 378 386 // used for idle sleep when io_uring is present 387 io_future_t future; 388 eventfd_t idle_buf; 389 proc->idle_wctx.ftr = &future; 390 proc->idle_wctx.rdbuf = &idle_buf; 379 // io_future_t future; 380 // eventfd_t idle_buf; 381 // proc->idle_wctx.ftr = &future; 382 // proc->idle_wctx.rdbuf = &idle_buf; 391 383 392 384
Note:
See TracChangeset
for help on using the changeset viewer.