Since it's now always the same as the 'thread' arg.
void
g_system_thread_create (GThreadFunc thread_func,
- gpointer arg,
gulong stack_size,
gboolean joinable,
GRealThread *thread,
posix_check_cmd (pthread_attr_setdetachstate (&attr,
joinable ? PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED));
- ret = pthread_create ((pthread_t *) &(thread->system_thread), &attr, (void* (*)(void*))thread_func, arg);
+ ret = pthread_create ((pthread_t *) &(thread->system_thread), &attr, (void* (*)(void*))thread_func, thread);
posix_check_cmd (pthread_attr_destroy (&attr));
void
g_system_thread_create (GThreadFunc func,
- gpointer data,
gulong stack_size,
gboolean joinable,
GRealThread *thread,
retval = g_new(GThreadData, 1);
retval->func = func;
- retval->data = data;
+ retval->data = thread;
retval->joinable = joinable;
result->thread.data = data;
result->name = name;
G_LOCK (g_thread_new);
- g_system_thread_create (proxy, result, stack_size, joinable,
+ g_system_thread_create (proxy, stack_size, joinable,
result, &local_error);
G_UNLOCK (g_thread_new);
G_GNUC_INTERNAL
GRealThread * g_system_thread_new (void);
G_GNUC_INTERNAL void g_system_thread_create (GThreadFunc func,
- gpointer data,
gulong stack_size,
gboolean joinable,
GRealThread *thread,