OSDN Git Service

[libcxx testing] Stop using arbitrary timeouts in one test
authorDavid Zarzycki <dave@znu.io>
Sat, 30 May 2020 10:06:43 +0000 (06:06 -0400)
committerDavid Zarzycki <dave@znu.io>
Sat, 30 May 2020 10:09:11 +0000 (06:09 -0400)
commit1c4238e7a00b28043e209d0b2c0dda76ee5af82e
tree6b7d3db7e8eb544daef7b5b911a3f73ad32449e2
parentbd85b7d6688725e854a694f9f3e8baa6a3077a4a
[libcxx testing] Stop using arbitrary timeouts in one test

On a busy and/or slow system, 100ms might not be long enough. Instead,
we now use atomic variables to communicate between threads.
libcxx/test/std/thread/thread.condition/thread.condition.condvar/notify_one.pass.cpp