Ignore:
File:
1 edited

Legend:

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

    r1f45c7d r089d30c  
    116116        // it is not a particularly safe scheme as it can make processors less homogeneous
    117117        struct {
    118                 $thread * thrd;
     118                thread$ * thrd;
    119119        } init;
    120120
     
    151151struct __attribute__((aligned(128))) __timestamp_t {
    152152        volatile unsigned long long tv;
    153 };
    154 
    155 static inline void  ?{}(__timestamp_t & this) { this.tv = 0; }
     153        volatile unsigned long long ma;
     154};
     155
     156// Aligned timestamps which are used by the relaxed ready queue
     157struct __attribute__((aligned(128))) __help_cnts_t {
     158        volatile unsigned long long src;
     159        volatile unsigned long long dst;
     160        volatile unsigned long long tri;
     161};
     162
     163static inline void  ?{}(__timestamp_t & this) { this.tv = 0; this.ma = 0; }
    156164static inline void ^?{}(__timestamp_t & this) {}
    157165
     
    170178                __timestamp_t * volatile tscs;
    171179
     180                // Array of stats
     181                __help_cnts_t * volatile help;
     182
    172183                // Number of lanes (empty or not)
    173184                volatile size_t count;
     
    216227        // List of threads
    217228        __spinlock_t thread_list_lock;
    218         __dllist_t(struct $thread) threads;
     229        __dllist_t(struct thread$) threads;
    219230        unsigned int nthreads;
    220231
Note: See TracChangeset for help on using the changeset viewer.