Changeset 2ed32fa7 for libcfa/src/concurrency
- Timestamp:
- Jun 20, 2022, 4:13:34 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 1dbbef6, 5a96b36
- Parents:
- df932552
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
rdf932552 r2ed32fa7 480 480 while(__atomic_load_n(&held, __ATOMIC_SEQ_CST)) Pause(); 481 481 __atomic_store_n(&held, true, __ATOMIC_SEQ_CST); 482 // printf("locked\n");483 482 unlock( lock, node ); 484 483 #ifdef __CFA_DEBUG__ … … 488 487 489 488 static inline void unlock(spin_queue_lock & this) with(this) { 490 // printf("unlocked\n");491 489 #ifdef __CFA_DEBUG__ 492 490 owner = 0p; 493 491 #endif 494 __atomic_store_n(&held, false, __ATOMIC_ SEQ_CST);492 __atomic_store_n(&held, false, __ATOMIC_RELEASE); 495 493 } 496 494
Note: See TracChangeset
for help on using the changeset viewer.