Changeset fd9b524 for libcfa/src/concurrency/kernel_private.hfa
- Timestamp:
- Aug 20, 2020, 10:56:27 PM (3 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 74f5c83
- Parents:
- b8e7aed
- git-author:
- Peter A. Buhr <pabuhr@…> (08/20/20 22:54:39)
- git-committer:
- Peter A. Buhr <pabuhr@…> (08/20/20 22:56:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel_private.hfa
rb8e7aed rfd9b524 10 10 // Created On : Mon Feb 13 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Nov 30 19:25:02 201913 // Update Count : 812 // Last Modified On : Wed Aug 12 08:21:33 2020 13 // Update Count : 9 14 14 // 15 15 … … 132 132 while( __builtin_expect(__atomic_exchange_n(ll, (bool)true, __ATOMIC_SEQ_CST), false) ) { 133 133 while(__atomic_load_n(ll, (int)__ATOMIC_RELAXED)) 134 asm volatile("pause");134 Pause(); 135 135 } 136 136 /* paranoid */ verify(*ll); … … 186 186 // Step 1 : make sure no writer are in the middle of the critical section 187 187 while(__atomic_load_n(&lock, (int)__ATOMIC_RELAXED)) 188 asm volatile("pause");188 Pause(); 189 189 190 190 // Fence needed because we don't want to start trying to acquire the lock
Note: See TracChangeset
for help on using the changeset viewer.