acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 18 Mar 2015 10:53:38 +0000 (10:53 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 18 Mar 2015 10:53:38 +0000 (10:53 +0000)
commit5e0216f173c1bef5bec3e709345d8170b1484d2f
tree589296fb247ee2147b0d907485aa46457dc7a4c8
parent41cee85a347099bbd151f46cc55f8974970624ba
acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.

2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
    Torvald Riegel  <triegel@redhat.com>

* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
(shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
(shared_timed_mutex::lock_shared()): Retry on EAGAIN.
(shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
EDEADLK.

Co-Authored-By: Torvald Riegel <triegel@redhat.com>
From-SVN: r221484
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/include/std/shared_mutex