Skip to content

Commit

Permalink
once: Fix a typo
Browse files Browse the repository at this point in the history
(cherry picked from commit 05ecd1a)
Signed-off-by: LIU Hao <lh_mouse@126.com>
  • Loading branch information
lhmouse committed Oct 12, 2024
1 parent e7a5bcf commit 3cc123f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcfgthread/once.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _MCF_once_wait_slow(_MCF_once* once, const int64_t* timeout_opt)

new = old;
new.__locked = 1;
new.__nsleep = (old.__nsleep + old.__locked) & __MCF_MUTEX_NSLEEP_M;
new.__nsleep = (old.__nsleep + old.__locked) & __MCF_ONCE_NSLEEP_M;
}
while(!_MCF_atomic_cmpxchg_weak_pptr_arl(once, &old, &new));

Expand Down

0 comments on commit 3cc123f

Please sign in to comment.