Ignore:
Timestamp:
Jun 16, 2020, 12:53:58 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:
2073d207
Parents:
d29255c
Message:

Moved statistics to stats.cfa to combine ready Q stats and IO stats

File:
1 edited

Legend:

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

    rd29255c r8834751  
    2020
    2121#include "alarm.hfa"
     22#include "stats.hfa"
    2223
    2324
     
    237238// Statics call at the end of each thread to register statistics
    238239#if !defined(__CFA_NO_STATISTICS__)
    239 void stats_tls_tally(struct cluster * cltr);
    240 #else
    241 static inline void stats_tls_tally(struct cluster * cltr) {}
     240static inline struct __stats_t * __tls_stats() {
     241        /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
     242        /* paranoid */ verify( kernelTLS.this_stats );
     243        return kernelTLS.this_stats;
     244}
    242245#endif
    243246
Note: See TracChangeset for help on using the changeset viewer.