d72e46519b
pthread_key_create() and pthread_{get,set}_specific() stubs needed by upcoming libpixman update. Tested by jasper@ and landry@ on a bulk ports build. |
||
---|---|---|
.. | ||
aclocal.m4 | ||
config.guess | ||
config.h | ||
config.h.in | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
depcomp | ||
install-sh | ||
ltmain.sh | ||
Makefile | ||
Makefile.am | ||
Makefile.in | ||
missing | ||
pthread-stubs.pc.in | ||
README | ||
shlib_version | ||
stubs.c |
This library provides weak aliases for pthread functions not provided in libc or otherwise available by default. Libraries like libxcb rely on pthread stubs to use pthreads optionally, becoming thread-safe when linked to libpthread, while avoiding any performance hit when running single-threaded. libpthread-stubs supports this behavior even on platforms which do not supply all the necessary pthread stubs. On platforms which already supply all the necessary pthread stubs, this package ships only the pkg-config file pthread-stubs.pc, to allow libraries to unconditionally express a dependency on pthread-stubs and still obtain correct behavior.