Ignore:
Timestamp:
May 13, 2021, 3:49:05 PM (19 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
e2f601f
Parents:
57f70ab
Message:

Added function to poll ready-queue length.
Not officially supported.

File:
1 edited

Legend:

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

    r57f70ab r8cd5434  
    702702        /* paranoid */ verify( ready_mutate_islocked() );
    703703}
     704
     705#if !defined(__CFA_NO_STATISTICS__)
     706        unsigned cnt(const __ready_queue_t & this, unsigned idx) {
     707                /* paranoid */ verify(this.lanes.count > idx);
     708                return this.lanes.data[idx].cnt;
     709        }
     710#endif
Note: See TracChangeset for help on using the changeset viewer.