Ignore:
Timestamp:
Mar 22, 2022, 3:28:29 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
ff7b2de
Parents:
8f01ad71
Message:

I/O now updates the timestamps when draining.
Timestamps are not used yet.

Location:
libcfa/src/concurrency/io
Files:
2 edited

Legend:

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

    r8f01ad71 r78a580d  
    6060        #include "fstream.hfa"
    6161        #include "kernel/private.hfa"
     62        #include "limits.hfa"
    6263        #include "thread.hfa"
    6364#pragma GCC diagnostic pop
     
    215216                // completion queue
    216217                cq.lock      = 0;
     218                cq.id        = MAX;
     219                cq.ts        = rdtscl();
    217220                cq.head      = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.head);
    218221                cq.tail      = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.tail);
  • libcfa/src/concurrency/io/types.hfa

    r8f01ad71 r78a580d  
    7979        struct __cmp_ring_t {
    8080                volatile bool lock;
     81
     82                unsigned id;
     83
     84                unsigned long long ts;
    8185
    8286                // Head and tail of the ring
Note: See TracChangeset for help on using the changeset viewer.