]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
_dbus_threads_init_debug: Remove
authorSimon McVittie <smcv@collabora.com>
Fri, 14 Dec 2018 20:06:02 +0000 (20:06 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 14 Dec 2018 20:06:02 +0000 (20:06 +0000)
libdbus has been thread-safe by default since 1.7.6 (2013):
dbus_threads_init_default() is called on a just-in-time basis
whenever needed, and _dbus_thread_init_debug() is equivalent to that.

Signed-off-by: Simon McVittie <smcv@collabora.com>
bus/test-main.c
bus/test-system.c
dbus/dbus-internals.h
dbus/dbus-test.c
dbus/dbus-threads.c

index d2229f7525d89fad5dff369c47e60c942d6b39bf..7d03305068c6a6ab9c90eab7c60dbf2d4b089a9d 100644 (file)
@@ -108,9 +108,6 @@ main (int argc, char **argv)
   _dbus_close_all ();
 #endif
 
-  if (!_dbus_threads_init_debug ())
-    _dbus_test_fatal ("OOM initializing debug threads");
-
   test_one ("expire-list", bus_expire_list_test);
   test_one ("config-parser", bus_config_parser_test);
   test_one ("signals", bus_signals_test);
index d4311b00a041052d381b11e8fb0aaea9ed6a2250..8be9134fe7c57416e5b40fa8857e3eeaf498455e 100644 (file)
@@ -64,9 +64,6 @@ main (int argc, char **argv)
 
   _dbus_string_init_const (&test_data_dir, dir);
 
-  if (!_dbus_threads_init_debug ())
-    _dbus_test_fatal ("OOM initializing debug threads");
-
   test_pre_hook ();
   _dbus_test_diag ("%s: Running config file parser (trivial) test", argv[0]);
   if (!bus_config_parser_trivial_test (&test_data_dir))
index 04bb8a8c57c26764782c930f8f6e868b5c7ab8a8..2e84f4f9b5fda13dafde7c3e13b0803fa77d799c 100644 (file)
@@ -405,9 +405,6 @@ void        _dbus_unlock (DBusGlobalLock lock);
 #define _DBUS_LOCK(name)                _dbus_lock   (_DBUS_LOCK_##name)
 #define _DBUS_UNLOCK(name)              _dbus_unlock (_DBUS_LOCK_##name)
 
-DBUS_PRIVATE_EXPORT
-dbus_bool_t _dbus_threads_init_debug (void);
-
 DBUS_PRIVATE_EXPORT
 dbus_bool_t   _dbus_address_append_escaped (DBusString       *escaped,
                                             const DBusString *unescaped);
index ae0b791c488d6b2ad7c2e5cb4a6c1bdf437aee11..6342a41cd4cef5f520ba034e5437dc56e09bf6e4 100644 (file)
@@ -90,9 +90,6 @@ void
 _dbus_run_tests (const char   *test_data_dir,
                  const char   *specific_test)
 {
-  if (!_dbus_threads_init_debug ())
-    _dbus_test_fatal ("debug threads init failed");
-
   if (test_data_dir == NULL)
     test_data_dir = _dbus_getenv ("DBUS_TEST_DATA");
 
index 12d40493bb18c3dcea43a04410157e69d772f67a..766bacb60198beff21481e238903c4277896c86f 100644 (file)
@@ -445,10 +445,4 @@ dbus_threads_init_default (void)
 
 #ifdef DBUS_ENABLE_EMBEDDED_TESTS
 
-dbus_bool_t
-_dbus_threads_init_debug (void)
-{
-  return dbus_threads_init (NULL);
-}
-
 #endif /* DBUS_ENABLE_EMBEDDED_TESTS */