Home | History | Annotate | Download | only in tests

Lines Matching defs:std

1 // Test whether no race conditions are reported on std::thread. Note: since
2 // the implementation of std::thread uses the shared pointer implementation,
21 std::thread t1( []() { sleep(1); i = 1; } );
22 std::thread t2( []() { i = 2; } );
25 std::cerr << "Done.\n";
36 std::thread::_Impl_base* __t = static_cast<std::thread::_Impl_base*>(__p);
37 std::thread::__shared_base_type __local;
45 std::terminate();
53 namespace std
60 "Enable multithreading to use std::thread");