Ignore:
File:
1 edited

Legend:

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

    r47746a2 r31bb2e1  
    286286// Statics call at the end of each thread to register statistics
    287287#if !defined(__CFA_NO_STATISTICS__)
    288         static inline struct __stats_t * __tls_stats() {
    289                 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
    290                 /* paranoid */ verify( kernelTLS.this_stats );
    291                 return kernelTLS.this_stats;
    292         }
    293 
    294         #define __STATS__(in_kernel, ...) { \
    295                 if( !(in_kernel) ) disable_interrupts(); \
    296                 with( *__tls_stats() ) { \
    297                         __VA_ARGS__ \
    298                 } \
    299                 if( !(in_kernel) ) enable_interrupts( __cfaabi_dbg_ctx ); \
    300         }
    301 #else
    302         #define __STATS__(in_kernel, ...)
     288static inline struct __stats_t * __tls_stats() {
     289        /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
     290        /* paranoid */ verify( kernelTLS.this_stats );
     291        return kernelTLS.this_stats;
     292}
    303293#endif
    304294
Note: See TracChangeset for help on using the changeset viewer.