[ANNOUNCE] libpthread-stubs 0.1

Jamey Sharp jamey at minilop.net
Thu Nov 23 23:57:49 PST 2006

The XCB developers have introduced a new library, libpthread-stubs.  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.

This initial 0.1 release provides the pthread stubs needed by libxcb.

Known issue: Some platforms supply extern inline pthread functions in a
pthread header, the internals of which do not cooperate with libpthread-stubs.
We plan to work around this in future versions of libpthread-stubs.  For now,
you can work around the problem in software which includes pthread.h by
#defining __NO_INLINES__ or by turning off optimization.

with sha1sum: 34ef40880d0112dc6d32b386d59ce94f2c139eef

with sha1sum: fe1835301067c501fac7d1d5f25573f0ee876390

GIT tag: 0.1

-- Josh Triplett <josh at freedesktop.org>, Jamey Sharp <jamey at minilop.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20061123/f4a48d59/attachment.pgp>

More information about the xorg mailing list