Exemplo n.º 1
0
EXPORT_C
#endif
dbus_bool_t
_dbus_threads_init_debug (void)
{
    return dbus_threads_init (&fake_functions);
}
Exemplo n.º 2
0
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
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 5
0
dbus_bool_t
_dbus_threads_init_platform_specific (void)
{
  check_monotonic_clock ();
  return dbus_threads_init (&pthread_functions);
}