Ignore:
Timestamp:
Apr 24, 2020, 1:54:29 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0ea6c5a
Parents:
ecf6b46
Message:

Added basic statistics to io.cfa

File:
1 edited

Legend:

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

    recf6b46 rd384787  
    4040void   P (semaphore & this);
    4141bool   V (semaphore & this);
     42bool   V (semaphore & this, unsigned count);
    4243
    4344
     
    144145        void * ring_ptr;
    145146        size_t ring_sz;
     147
     148        // Statistics
     149        struct {
     150                struct {
     151                        unsigned long long int val;
     152                        unsigned long long int cnt;
     153                } submit_avg;
     154        } stats;
    146155};
    147156
     
    164173        void * ring_ptr;
    165174        size_t ring_sz;
     175
     176        // Statistics
     177        struct {
     178                struct {
     179                        unsigned long long int val;
     180                        unsigned long long int cnt;
     181                } completed_avg;
     182        } stats;
    166183};
    167184
Note: See TracChangeset for help on using the changeset viewer.