<div dir="ltr"><div class="gmail_extra">Hi Nico</div><div class="gmail_extra"> </div><div class="gmail_extra">Sorry, forgot to mention a few other possible changes other than the chrono one:</div><div class="gmail_extra"> </div>
<div class="gmail_extra">In atomic_fetch_sub_seq4 below , InterlockedExchangeSubtract better here?</div><div class="gmail_extra"> </div><div class="gmail_extra">_LIBCPP_INLINE_VISIBILITY<br>static unsigned atomic_fetch_sub_seq4(_Atomic(unsigned)* obj, unsigned arg)<br>
{<br>#ifdef __clang__<br>    return __c11_atomic_fetch_sub(obj, arg, std::memory_order_seq_cst);<br>#else<br>    return static_cast<unsigned>(_InterlockedExchangeAdd((volatile long*)obj, -arg));<br>#endif<br>}</div>
<div class="gmail_extra"> </div><div class="gmail_extra">In futex.cpp:<br>                atomic_fetch_add_seq4(&m->__waiters, -__futex_lock_incr);<br>atomic_fetch_sub_seq4(&m->__waiters, __futex_lock_incr) a better fit?</div>
<div class="gmail_extra"> </div><div class="gmail_extra">Thanks.</div></div>