summaryrefslogtreecommitdiff
path: root/ylwrap
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-10 08:59:54 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-10 08:59:54 +0000
commit3b56b98641bcc7f9af48e3b87e7c499730dabf4d (patch)
tree341639a9ee9569500b8fd45f9c968683b7026f93 /ylwrap
parent9adfaa0324301ed7a30b20786602566eda2c7581 (diff)
downloadgcc-3b56b98641bcc7f9af48e3b87e7c499730dabf4d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221970 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ylwrap')
0 files changed, 0 insertions, 0 deletions