|
|
@ -405,7 +405,11 @@ void TQThread::start(Priority priority)
|
|
|
|
d->thread_id = NULL;
|
|
|
|
d->thread_id = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// Legacy glib versions require this threading system initialization call
|
|
|
|
// Legacy glib versions require this threading system initialization call
|
|
|
|
g_thread_init(NULL);
|
|
|
|
if (!GLIB_CHECK_VERSION (2, 32, 0)) {
|
|
|
|
|
|
|
|
if( ! g_thread_get_initialized () ) {
|
|
|
|
|
|
|
|
g_thread_init(NULL);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GThread* glib_thread_handle = g_thread_create((GThreadFunc)TQThreadInstance::start, d->args, false, NULL);
|
|
|
|
GThread* glib_thread_handle = g_thread_create((GThreadFunc)TQThreadInstance::start, d->args, false, NULL);
|
|
|
|
if (glib_thread_handle) {
|
|
|
|
if (glib_thread_handle) {
|
|
|
|