Ignore:
Timestamp:
Mar 29, 2026, 9:52:51 PM (5 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
e6e250d
Parents:
00675ed4
Message:

2nd attempt at harmonizing isOp functions, e.g., isEmpty, to C/C++ form empty

File:
1 edited

Legend:

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

    r00675ed4 r81ab5eb  
    594594                lock( queue.lock __cfaabi_dbg_ctx2 );
    595595                {
    596                         was_empty = isEmpty( queue.queue );
     596                        was_empty = empty( queue.queue );
    597597
    598598                        // Add our request to the list
     
    632632        // notify the arbiter that new allocations are available
    633633        static void __ioarbiter_notify( io_arbiter$ & this, io_context$ * ctx ) {
    634                 /* paranoid */ verify( ! isEmpty( this.pending.queue ) );
     634                /* paranoid */ verify( ! empty( this.pending.queue ) );
    635635                /* paranoid */ verify( __preemption_enabled() );
    636636
     
    642642                        // as long as there are pending allocations try to satisfy them
    643643                        // for simplicity do it in FIFO order
    644                         while( ! isEmpty( this.pending.queue ) ) {
     644                        while( ! empty( this.pending.queue ) ) {
    645645                                // get first pending allocs
    646646                                __u32 have = ctx->sq.free_ring.tail - ctx->sq.free_ring.head;
     
    727727                        // pop each operation one at a time.
    728728                        // There is no wait morphing because of the io sq ring
    729                         while( ! isEmpty( ctx.ext_sq.queue ) ) {
     729                        while( ! empty( ctx.ext_sq.queue ) ) {
    730730                                // drop the element from the queue
    731731                                __external_io & ei = (__external_io&)remove_first( ctx.ext_sq.queue );
Note: See TracChangeset for help on using the changeset viewer.