[v3] libstdc++/50196 - enable std::thread, std::mutex etc. on darwin

Jonathan Wakely jwakely.gcc@gmail.com
Fri Oct 21 09:24:00 GMT 2011


On 21 October 2011 00:43, Jonathan Wakely wrote:
> This patch should enable macosx support for <thread> and partial
> support for <mutex>, by defining _GLIBCXX_HAS_GTHREADS on POSIX
> systems without the _POSIX_TIMEOUTS option, and only disabling the
> types which rely on the Timeouts option, std::timed_mutex and
> std::recursive_timed_mutex, instead of disabling all thread support.

I've just realised this patch will disable the timed mutexes on
non-posix platforms - I should only check for _POSIX_TIMEOUTS when
thread-model = posix, and set HAS_MUTEX_TIMEDLOCK unconditionally
elsewhere.

New patch coming soon...



More information about the Gcc-patches mailing list