Changeset d28b70a


Ignore:
Timestamp:
Mar 29, 2022, 9:44:32 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
729df21
Parents:
d080549
Message:

Now also keep track of last drain time

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    rd080549 rd28b70a  
    179179                // Ensure that the kernel only sees the new value of the head index after the CQEs have been read.
    180180                __atomic_store_n( ctx->cq.head, head + count, __ATOMIC_SEQ_CST );
     181                ctx->proc->idle_wctx.drain_time = ts_next;
    181182
    182183                __cfadbg_print_safe(io, "Kernel I/O : %u completed age %llu\n", count, ts_next);
  • libcfa/src/concurrency/kernel.hfa

    rd080549 rd28b70a  
    7777        volatile unsigned long long wake_time;
    7878        volatile unsigned long long sleep_time;
     79        volatile unsigned long long drain_time;
    7980};
    8081
Note: See TracChangeset for help on using the changeset viewer.