Changeset 8cd40bf for libcfa


Ignore:
Timestamp:
May 12, 2021, 5:31:01 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
16fd826
Parents:
1e5cd9a
Message:

Moved timestamp declaration to kernel.hfa

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

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

    r1e5cd9a r8cd40bf  
    148148
    149149// Aligned timestamps which are used by the relaxed ready queue
    150 struct __attribute__((aligned(128))) __timestamp_t;
    151 void  ?{}(__timestamp_t & this);
    152 void ^?{}(__timestamp_t & this);
     150struct __attribute__((aligned(128))) __timestamp_t {
     151        volatile unsigned long long tv;
     152};
     153
     154static inline void  ?{}(__timestamp_t & this) { this.tv = 0; }
     155static inline void ^?{}(__timestamp_t & this) {}
    153156
    154157//TODO adjust cache size to ARCHITECTURE
  • libcfa/src/concurrency/ready_subqueue.hfa

    r1e5cd9a r8cd40bf  
    108108        return this.anchor.ts;
    109109}
    110 
    111 // Aligned timestamps which are used by the relaxed ready queue
    112 struct __attribute__((aligned(128))) __timestamp_t {
    113         volatile unsigned long long tv;
    114 };
    115 
    116 void  ?{}(__timestamp_t & this) { this.tv = 0; }
    117 void ^?{}(__timestamp_t & this) {}
Note: See TracChangeset for help on using the changeset viewer.