Changeset df932552
- Timestamp:
- Jun 20, 2022, 2:03:46 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 2ed32fa7
- Parents:
- 76a798d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r76a798d rdf932552 478 478 #endif 479 479 lock( lock, node ); 480 while( held) Pause();481 held = true;480 while(__atomic_load_n(&held, __ATOMIC_SEQ_CST)) Pause(); 481 __atomic_store_n(&held, true, __ATOMIC_SEQ_CST); 482 482 // printf("locked\n"); 483 483 unlock( lock, node ); … … 492 492 owner = 0p; 493 493 #endif 494 held = false;494 __atomic_store_n(&held, false, __ATOMIC_SEQ_CST); 495 495 } 496 496
Note: See TracChangeset
for help on using the changeset viewer.