Re: [patch] libstdc++/65704 portable timed_mutex and recursive_timed_mutex

2015-09-07 Thread Jonathan Wakely
One more patch for timed mutexes, to enable two more tests on darwin that are supported by the new implementations. Tested powerpc64le-linux, committed to trunk. commit 917a1e218c46a1bfcd9b2368a9e0f51c13f6a387 Author: Jonathan Wakely Date: Mon Sep 7 11:34:59 2015 +0100 Enable timed mutex

Re: [patch] libstdc++/65704 portable timed_mutex and recursive_timed_mutex

2015-09-04 Thread Jonathan Wakely
On 04/09/15 11:18 +0100, Jonathan Wakely wrote: Tested powerpc64le-linux as normal, and again with #undef _GTHREAD_USE_MUTEX_TIMEDLOCK to test the new code. Argh, my testing with the 'undef didn't work because was included after I had #undef'd it, so I wasn't testing the new code at all, and i

Re: [patch] libstdc++/65704 portable timed_mutex and recursive_timed_mutex

2015-09-04 Thread Jonathan Wakely
On 04/09/15 11:18 +0100, Jonathan Wakely wrote: This provides alternative implementations of std::timed_mutex and std::recursive_timed_mutex for targets that don't support the _POSIX_TIMEOUTS option (darwin and maybe HPUX). Committed to trunk now.

[patch] libstdc++/65704 portable timed_mutex and recursive_timed_mutex

2015-09-04 Thread Jonathan Wakely
This provides alternative implementations of std::timed_mutex and std::recursive_timed_mutex for targets that don't support the _POSIX_TIMEOUTS option (darwin and maybe HPUX). The new versions need to use std::condition_variable, which depends on std::mutex, so I have moved std::mutex, std::lock_