gcc/libstdc++-v3/include
Jonathan Wakely 43b0e124e4 shared_mutex (shared_timed_mutex): Add comments to explain the logic in the non-pthread_rwlock_t version.
* include/std/shared_mutex (shared_timed_mutex): Add comments to
	explain the logic in the non-pthread_rwlock_t version.
	(_Mutex): Remove redundant type.
	(_M_n_readers): Rename to _S_max_readers.
	(_M_write_entered, _M_readers): New convenience functions.
	(lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
	functions. Use predicates with condition variables. Simplify bitwise
	operations.
	(try_lock_for, try_shared_lock_for): Convert duration to time_point
	and call try_lock_until or try_shared_lock_until respectively.
	(try_lock_until, try_shared_lock_until): Wait on the condition
	variables until the specified time passes.
	(unlock): Add Debug Mode assertion.
	(unlock_shared): Add Debug Mode assertion.
	* testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.

From-SVN: r221970
2015-04-10 09:59:54 +01:00
..
backward Update copyright years. 2015-01-05 13:33:28 +01:00
bits re PR libstdc++/65147 (alignment of std::atomic object is not correct) 2015-04-09 12:15:44 +01:00
c Update copyright years. 2015-01-05 13:33:28 +01:00
c_compatibility Update copyright years. 2015-01-05 13:33:28 +01:00
c_global re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
c_std re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
debug Update copyright years. 2015-01-05 13:33:28 +01:00
decimal Update copyright years. 2015-01-05 13:33:28 +01:00
experimental * include/experimental/system_error: Fix include guard. 2015-03-13 12:47:21 +00:00
ext c++config (__gnu_cxx::__cxx11): Define new namespace. 2015-03-20 13:26:55 +00:00
parallel Update copyright years. 2015-01-05 13:33:28 +01:00
precompiled Update copyright years. 2015-01-05 13:33:28 +01:00
profile Update copyright years. 2015-01-05 13:33:28 +01:00
std shared_mutex (shared_timed_mutex): Add comments to explain the logic in the non-pthread_rwlock_t version. 2015-04-10 09:59:54 +01:00
tr1 Update copyright years. 2015-01-05 13:33:28 +01:00
tr2 Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.am locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00
Makefile.in locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00