EXPORT_C #endif dbus_bool_t _dbus_threads_init_debug (void) { return dbus_threads_init (&fake_functions); }
dbus_bool_t _dbus_threads_init_debug (void) { #ifdef DBUS_WIN return _dbus_threads_init_platform_specific(); #else return dbus_threads_init (&fake_functions); #endif }
dbus_bool_t _dbus_threads_init_platform_specific (void) { /* These have static variables, and we need to handle both the case * where dbus_threads_init() has been called and when it hasn't; * so initialize them before any threads are allowed to enter. */ check_monotonic_clock (); (void) _dbus_check_setuid (); return dbus_threads_init (NULL); }
dbus_bool_t _dbus_threads_init_platform_specific (void) { /* We reuse this over several generations, because we can't * free the events once they are in use */ if (dbus_cond_event_tls == TLS_OUT_OF_INDEXES) { dbus_cond_event_tls = TlsAlloc (); if (dbus_cond_event_tls == TLS_OUT_OF_INDEXES) return FALSE; } return dbus_threads_init (NULL); }
dbus_bool_t _dbus_threads_init_platform_specific (void) { check_monotonic_clock (); return dbus_threads_init (&pthread_functions); }