Skip to content

Commit

Permalink
once: Remove a __builtin_expect
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 17, 2024
1 parent a9350d8 commit eae5202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcfgthread/once.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ _MCF_once_wait(_MCF_once* __once, const int64_t* __timeout_opt) __MCF_NOEXCEPT

/* Check the first byte to see whether initialization has been completed,
* and if that's the case, don't do anything. */
if(__builtin_expect(__old.__ready, 1))
if(__old.__ready)
return 0;

if(__timeout_opt && (*__timeout_opt == 0) && __old.__locked)
Expand Down

0 comments on commit eae5202

Please sign in to comment.