Skip to content

Commit

Permalink
Fix overlooked name change
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok committed Nov 7, 2024
1 parent c1d3912 commit abfbb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -3090,7 +3090,7 @@ int Scm__WinFastLockLock(ScmInternalFastlock spin)
/* spin may be NULL when FASTLOCK_LOCK is called on already-closed port. */
if (spin != NULL) {
ScmAtomicVar idle = 0;
while (!Scm_AtomicCompareAndSwap(&spin->lock_state, idle, 1)) {
while (!Scm_AtomicCompareExchange(&spin->lock_state, idle, 1)) {
/* idle might be changed */
idle = 0;
/* it might be slow */
Expand Down

0 comments on commit abfbb19

Please sign in to comment.