Changeset 7fdae38
- Timestamp:
- Aug 14, 2020, 3:03:05 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2fafe7e
- Parents:
- 4998155
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r4998155 r7fdae38 532 532 unsigned total = this.total; 533 533 processor * proc = &this.list`first; 534 // Threadfence is unnecessary, but gcc-8 and older incorrectly reorder code without it535 __atomic_thread_fence(__ATOMIC_SEQ_CST);534 // Compiler fence is unnecessary, but gcc-8 and older incorrectly reorder code without it 535 asm volatile("": : :"memory"); 536 536 if(l != __atomic_load_n(&this.lock, __ATOMIC_SEQ_CST)) { Pause(); continue; } 537 537 return [idle, total, proc];
Note: See TracChangeset
for help on using the changeset viewer.