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));

View File

@ -502,7 +502,7 @@ g_system_thread_create (GThreadFunc func,
gpointer data,
gulong stack_size,
gboolean joinable,
gpointer thread,
GRealThread *thread,
GError **error)
{
guint ignore;
@ -529,7 +529,7 @@ g_system_thread_create (GThreadFunc func,
return;
}
*(GThreadData **)thread = retval;
*(GThreadData **) &(thread->system_thread) = retval;
}
void

View File

@ -812,7 +812,7 @@ g_thread_new_internal (const gchar *name,
result->name = name;
G_LOCK (g_thread_new);
g_system_thread_create (proxy, result, stack_size, joinable,
&result->system_thread, &local_error);
result, &local_error);
G_UNLOCK (g_thread_new);
if (local_error)

View File

@ -40,7 +40,7 @@ G_GNUC_INTERNAL void g_system_thread_create (GThreadFunc func,
gpointer data,
gulong stack_size,
gboolean joinable,
gpointer thread,
GRealThread *thread,
GError **error);
G_GNUC_INTERNAL
void g_system_thread_free (GRealThread *thread);