Skip to content

Commit 5cc5969

Browse files
committed
[libc++] experiment with atomic_sync
1 parent 5d98d88 commit 5cc5969

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/include/__atomic/atomic_sync.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ struct __atomic_wait_backoff_impl {
124124
if (__update_monitor_val_and_poll(__contention_address, __monitor_val))
125125
return true;
126126
std::__libcpp_atomic_wait(__contention_address, __monitor_val);
127-
} else if (__elapsed > chrono::microseconds(4))
128-
__libcpp_thread_yield();
129-
else {
127+
} else {
130128
} // poll
131129
return false;
132130
}

0 commit comments

Comments
 (0)