This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch libstdc++] Add POSIX variant of shared_timed_mutex.
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>, Torvald Riegel <triegel at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Fri, 16 Jan 2015 14:49:04 +0100
- Subject: Re: [patch libstdc++] Add POSIX variant of shared_timed_mutex.
- Authentication-results: sourceware.org; auth=none
- References: <1421413979 dot 17929 dot 55 dot camel at triegel dot csb> <20150116131808 dot GE3360 at redhat dot com>
Hi,
On 01/16/2015 02:18 PM, Jonathan Wakely wrote:
+#if defined(__GTHREADS_CXX0X)
N.B. I advised Torvald that this macro was OK to check that we have
pthread_rwlock_t available. It's not strictly correct, but currently
only gthr-posix.h defines __GTHREADS_CXX0X so it works in practice. We
should come up with something better at a later date though, or if any
other gthreads model ever supports C++11 threads.
Maybe add a comment summarizing the above?
Thanks,
Paolo.