On 08/04/15 20:11 +0100, Jonathan Wakely wrote: >We can get rid of the _Mutex type then, and just use std::mutex, and >that also means we can provide the timed locking functions even when >!defined(_GTHREAD_USE_MUTEX_TIMEDLOCK). > >And so maybe we should use this fallback implementation instead of the >pthread_rwlock_t one when !defined(_GTHREAD_USE_MUTEX_TIMEDLOCK), so >that they have a complete std::shared_timed_mutex (this applies to at >least Darwin, not sure which other targets). Here's a further patch to do that (which really needs to go into 5.0 too, so we don't switch Darwin to the new pthread_rwlock_t version and then have to swtich it back again in 6.0).