Ignore:
Timestamp:
Apr 1, 2022, 1:47:47 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
5f53cc3
Parents:
1417f6b
Message:

Some clean-up of ready queue usage of -1llu.
io types ts now returns MAX on empty cq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io/types.hfa

    r1417f6b re71e94a  
    2525#include "iofwd.hfa"
    2626#include "kernel/fwd.hfa"
     27#include "limits.hfa"
    2728
    2829#if defined(CFA_HAVE_LINUX_IO_URING_H)
     
    136137
    137138        static inline unsigned long long ts($io_context *& this) {
     139                const __u32 head = *this->cq.head;
     140                const __u32 tail = *this->cq.tail;
     141
     142                if(head == tail) return MAX;
     143
    138144                return this->cq.ts;
    139145        }
Note: See TracChangeset for help on using the changeset viewer.