g_system_thread_create: SystemThread -> RealThread

Just like g_system_thread_wait().
This commit is contained in:
Ryan Lortie
2011-10-12 22:19:28 -04:00
parent 6613b2f8fd
commit 3237eaf5d5
4 changed files with 6 additions and 6 deletions

View File

@@ -1086,7 +1086,7 @@ g_system_thread_create (GThreadFunc thread_func,
gpointer arg,
gulong stack_size,
gboolean joinable,
gpointer thread,
GRealThread *thread,
GError **error)
{
pthread_attr_t attr;
@@ -1111,7 +1111,7 @@ g_system_thread_create (GThreadFunc thread_func,
posix_check_cmd (pthread_attr_setdetachstate (&attr,
joinable ? PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED));
ret = pthread_create (thread, &attr, (void* (*)(void*))thread_func, arg);
ret = pthread_create ((pthread_t *) &(thread->system_thread), &attr, (void* (*)(void*))thread_func, arg);
posix_check_cmd (pthread_attr_destroy (&attr));