summaryrefslogtreecommitdiff
path: root/dbus/dbus-threads-internal.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-08-30 17:24:20 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-08-30 17:31:16 +0100
commit31edd76313922780fb640f13ad1b5ed130fe442b (patch)
tree56f8f8eddbcba74aada0d42b2958f231a2aa0987 /dbus/dbus-threads-internal.h
parentd98a587f766e00f50244cfa75008e75ee4af20f6 (diff)
downloaddbus-31edd76313922780fb640f13ad1b5ed130fe442b.tar.gz
Revert "Add a statically-initialized implementation of _dbus_lock() on glibc systems"
This reverts commit 83aaa9f359e90d3b8cae5d17f6d9ba4600cff68b. This wasn't right: because it looked for a symbol from pthread.h, modules could end up disagreeing about whether threading was enabled or not.
Diffstat (limited to 'dbus/dbus-threads-internal.h')
-rw-r--r--dbus/dbus-threads-internal.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/dbus/dbus-threads-internal.h b/dbus/dbus-threads-internal.h
index 228a8c05..64e8bac0 100644
--- a/dbus/dbus-threads-internal.h
+++ b/dbus/dbus-threads-internal.h
@@ -32,12 +32,6 @@
* @{
*/
-/* glibc can implement global locks without needing an initialization step,
- * which improves our thread-safety-by-default further. */
-#if defined(__GLIBC__) && defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
-# define DBUS_HAVE_STATIC_RECURSIVE_MUTEXES 1
-#endif
-
/**
* A mutex which is recursive if possible, else non-recursive.
* This is typically recursive, but that cannot be relied upon.