Ignore:
Timestamp:
Mar 25, 2022, 1:49:24 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
64bdacc
Parents:
202c80b
Message:

Added io helping stats

File:
1 edited

Legend:

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

    r202c80b r54c1196  
    111111                // Drain the queue
    112112                if(!__atomic_try_acquire(&ctx->cq.lock)) {
     113                        __STATS__( false, io.calls.locked++; )
    113114                        return false;
    114115                }
     
    191192                                        if(age > cutoff) {
    192193                                                remote = __cfa_do_drain( io.data[target], cltr );
     194                                                if(remote) __STATS__( false, io.calls.helped++; )
    193195                                        }
    194196                                }
Note: See TracChangeset for help on using the changeset viewer.