Ignore:
Timestamp:
Mar 28, 2022, 4:00:32 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
37a3aa23
Parents:
2377ca2
Message:

Refactored io to allow holding the lock duirng idle sleep

File:
1 edited

Legend:

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

    r2377ca2 r18f7858  
    3232
    3333        void __cfa_io_start( processor * proc ) {}
    34         bool __cfa_io_flush( processor * proc, int ) { return false; }
     34        bool __cfa_io_flush( processor * proc ) { return false; }
     35        bool __cfa_io_drain( processor * proc ) __attribute__((nonnull (1)));
     36        void __cfa_io_idle ( processor * ) __attribute__((nonnull (1)));
    3537        void __cfa_io_stop ( processor * proc ) {}
    3638
     
    215217
    216218                // completion queue
    217                 cq.lock      = 0;
     219                cq.lock      = false;
    218220                cq.id        = MAX;
    219221                cq.ts        = rdtscl();
Note: See TracChangeset for help on using the changeset viewer.