configure: add generic pshared mutex test
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 26 Feb 2017 11:47:28 +0000 (11:47 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Tue, 14 Mar 2017 10:52:42 +0000 (10:52 +0000)
commit06eac6b2318da7759a055c4a3ac01c2c1e8aa764
tree17097fd4f12266302ceec114c728b7011d6fedb6
parent1df28a3960734e1e00cb2e5fe0e261fcba30f7c7
configure: add generic pshared mutex test

Add a feature test to configure to determine if a platform has
interprocess synchronization primitives that work with threads and
remove the hardcoded enablement in the individual os/os-* headers. This
should work better for platforms where support was overlooked or didn't
exist at some point in the past but has since been added. Also update
the README to not single out FreeBSD for being thread only as this might
change...

This is based off work by the Boost project
(https://github.com/boostorg/interprocess/blob/boost-1.63.0/include/boost/interprocess/detail/workaround.hpp#L45
) that found that OSX 10.6 and Cygwin are buggy even though
_POSIX_THREAD_PROCESS_SHARED says this feature should be work on them.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
README
configure
init.c
mutex.c
os/os-aix.h
os/os-android.h
os/os-freebsd.h
os/os-hpux.h
os/os-linux.h
os/os-solaris.h