llvm-project/libcxx/test/std/thread
Arthur O'Dwyer 40950a44b9 [libc++] ADL-proof <thread>, and eliminate `using namespace chrono`.
Since we know exactly which identifiers we expect to find in `chrono`,
a using-directive seems like massive overkill. Remove the directives
and qualify the names as needed.

One subtle trick here: In two places I replaced `*__p` with `*__p.get()`.
The former is an unqualified call to `operator*` on a class type, which
triggers ADL and breaks the new test. The latter is a call to the
built-in `operator*` on pointers, which specifically
does NOT trigger ADL thanks to [over.match.oper]/1.

Differential Revision: https://reviews.llvm.org/D92243
2020-12-01 22:13:39 -05:00
..
futures [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.barrier [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.condition [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
thread.latch [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.mutex [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.req [libc++] Remove useless nothing_to_do.pass.cpp tests 2020-04-03 13:48:34 -04:00
thread.semaphore [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.threads [libc++] ADL-proof <thread>, and eliminate `using namespace chrono`. 2020-12-01 22:13:39 -05:00
macro.pass.cpp libcxx: Define __STDCPP_THREADS__ to 1, not to __cplusplus. 2019-07-30 14:32:47 +00:00