Ignore:
Timestamp:
Jun 25, 2020, 1:34:34 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8e27ac45
Parents:
c953163
Message:

Processors now have their own print stats flag

File:
1 edited

Legend:

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

    rc953163 rc34ebf2  
    104104        // Link lists fields
    105105        Link(processor) link;
     106
     107        #if !defined(__CFA_NO_STATISTICS__)
     108                bool print_stats;
     109                bool print_halts;
     110        #endif
    106111
    107112#ifdef __CFA_DEBUG__
     
    227232                this.print_stats = true;
    228233        }
     234
     235        static inline void print_stats_at_exit( processor & this ) {
     236                this.print_stats = true;
     237        }
     238
     239        void print_halts( processor & this );
    229240#endif
    230241
Note: See TracChangeset for help on using the changeset viewer.