summaryrefslogtreecommitdiff
path: root/lib/libpthread-stubs/README
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 15:50:58 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 15:50:58 +0000
commitbd27936990a5723960b7bfc4d174f9753658f15e (patch)
tree32aaf12b57f6e86256a075fe02979334558d69cd /lib/libpthread-stubs/README
parent3b8800decdad9eecbc06d3830acd65755f850543 (diff)
import libpthread-stubs 0.1
Diffstat (limited to 'lib/libpthread-stubs/README')
-rw-r--r--lib/libpthread-stubs/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libpthread-stubs/README b/lib/libpthread-stubs/README
new file mode 100644
index 000000000..4e7e85b32
--- /dev/null
+++ b/lib/libpthread-stubs/README
@@ -0,0 +1,9 @@
+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.