gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely 9b2b801af5 mutex (try_lock, [...]): Fix.
2010-12-04  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/mutex (try_lock, __try_lock_impl): Fix.
	(lock): Implement using __try_lock_impl.
	* testsuite/30_threads/try_lock/2.cc: Fix logic.
	* testsuite/30_threads/try_lock/4.cc: New.
	* testsuite/30_threads/lock/1.cc: New.
	* testsuite/30_threads/lock/2.cc: New.
	* testsuite/30_threads/lock/3.cc: New.
	* testsuite/30_threads/lock/4.cc: New.

From-SVN: r167452
2010-12-04 02:37:46 +00:00
..
async
call_once re PR libstdc++/46303 ('mutex' is not a member of 'std' failures in 30_threads/call_once/constexpr.cc, 30_threads/mutex/cons/constexpr.cc, 30_threads/once_flag/cons/constexpr.cc) 2010-11-04 17:02:25 +00:00
condition_variable * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
condition_variable_any * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
future constexpr.cc: Add dg-require* directives. 2010-11-24 10:08:49 +00:00
headers
lock mutex (try_lock, [...]): Fix. 2010-12-04 02:37:46 +00:00
lock_guard
mutex re PR libstdc++/46303 ('mutex' is not a member of 'std' failures in 30_threads/call_once/constexpr.cc, 30_threads/mutex/cons/constexpr.cc, 30_threads/once_flag/cons/constexpr.cc) 2010-11-04 17:02:25 +00:00
once_flag/cons re PR libstdc++/46303 ('mutex' is not a member of 'std' failures in 30_threads/call_once/constexpr.cc, 30_threads/mutex/cons/constexpr.cc, 30_threads/once_flag/cons/constexpr.cc) 2010-11-04 17:02:25 +00:00
packaged_task future: Enable allocator support. 2010-10-08 02:06:27 +01:00
promise future: Enable allocator support. 2010-10-08 02:06:27 +01:00
recursive_mutex * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
recursive_timed_mutex * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
shared_future constexpr.cc: Add dg-require* directives. 2010-11-24 10:08:49 +00:00
this_thread
thread * include/std/thread: Add deleted thread(thread&). 2010-08-06 15:41:23 -04:00
timed_mutex * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
try_lock mutex (try_lock, [...]): Fix. 2010-12-04 02:37:46 +00:00
unique_lock