<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/127221>127221</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Update libcxx wait/notify_one/notify_all to use WaitOnAddress/WakeByAddressSingle/WakeByAddressAll on Windows
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          johnplatts
      </td>
    </tr>
</table>

<pre>
    Windows 8 had introduced the WaitOnAddress, WakeByAddressSingle, and WakeByAddressAll functions that can be used to implement __libcpp_platform_wait_on_address and __libcpp_platform_wake_by_address on Windows.

Should a Windows-specific implementation of __libcpp_platform_wait_on_address and __libcpp_platform_wake_by_address that uses the WaitOnAddress/WakeByAddressSingle/WakeByAddressAll APIs be added to libcxx/src/atomic.cpp (although this change requires Windows 8 or later or Windows Server 2012 or later)?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysUk1vnDAQ_TXmYmUFA-yGA4dNK6SeWimqckSDPWAnxqb-SLL_vvJmk1XVnKpKSMDz-M17bwZD0Isl6ll7x9qvBaaonO8fnbKbwRhDMTl56h-0le4l8FuuUHJto3cyCZI8KuIPqON3e5TSUwgMvvAHfKK70wW413YxlGG08s-jozF8TlZE7WzgUWHkAi2fiKeQuR3X62ZoJRv5OBo9iW0bs6zZ-XV8QR1HZ0d8IzvTf1b1RON0-qhyll_M7Fh5ZOXxXrlkJMd3-CZsJPSsxbU5ZoHczf9NxNlqChQ-y2_4NL7hr-SOP76FnBVK-RZW7vr6ymAIXjAYMLpVi53YNs7gFk1ULi2KR6UDFwrtQtzTr6Q9BX6dr_PcYCSfP97Re_LP5DmUFXycM-hYPRSyr2VXd1hQXx3qrm26w6EqVC8Oc1nJTjTTnqhqm65u56ZqpgNhK6jBQvdQQltC1VT7al92u7mtuoZA7mvcCwkla0paUZudMc_rzvml0CEk6is4AFSFwYlMOK8tQHbO4O78QF5j3-dbN1NaAmtKo0MMV56oo6H-5yYx0iU0nufIYLAu6vk0OkvXHzQmp5vCP0_qunNF8qZXMW6B1UcGA4Nh0VGlaSfcymDIGi-vm827RxJZ1dl47nfx_tzD7wAAAP__ie9M0w">