Ignore:
Timestamp:
Mar 22, 2022, 4:59:53 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
1a567d0
Parents:
0521a1a
Message:

Implemented helping for io drain based on timestamps.

File:
1 edited

Legend:

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

    r0521a1a r4479890  
    136136static void mark_awake(__cluster_proc_list & idles, processor & proc);
    137137
    138 extern bool __cfa_io_drain( $io_context *, cluster * cltr );
     138extern bool __cfa_io_drain( processor * proc ) __attribute__((nonnull (1)));
    139139extern bool __cfa_io_flush( processor *, int min_comp );
    140140static inline bool __maybe_io_drain( processor * );
     
    829829
    830830static inline bool __maybe_io_drain( processor * proc ) {
     831        /* paranoid */ verify( proc );
    831832        bool ret = false;
    832833        #if defined(CFA_HAVE_LINUX_IO_URING_H)
     
    839840                if(head == tail) return false;
    840841                ready_schedule_lock();
    841                 ret = __cfa_io_drain( ctx, proc->cltr );
     842                ret = __cfa_io_drain( proc );
    842843                ready_schedule_unlock();
    843844        #endif
Note: See TracChangeset for help on using the changeset viewer.