Changeset 8cd40bf for libcfa/src
- Timestamp:
- May 12, 2021, 5:31:01 PM (4 years ago)
- 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
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r1e5cd9a r8cd40bf 148 148 149 149 // 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); 150 struct __attribute__((aligned(128))) __timestamp_t { 151 volatile unsigned long long tv; 152 }; 153 154 static inline void ?{}(__timestamp_t & this) { this.tv = 0; } 155 static inline void ^?{}(__timestamp_t & this) {} 153 156 154 157 //TODO adjust cache size to ARCHITECTURE -
libcfa/src/concurrency/ready_subqueue.hfa
r1e5cd9a r8cd40bf 108 108 return this.anchor.ts; 109 109 } 110 111 // Aligned timestamps which are used by the relaxed ready queue112 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.