mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	g_system_thread_create: drop 'data' arg
Since it's now always the same as the 'thread' arg.
This commit is contained in:
		| @@ -1083,7 +1083,6 @@ g_system_thread_free (GRealThread *thread) | ||||
|  | ||||
| void | ||||
| g_system_thread_create (GThreadFunc       thread_func, | ||||
|                         gpointer          arg, | ||||
|                         gulong            stack_size, | ||||
|                         gboolean          joinable, | ||||
|                         GRealThread      *thread, | ||||
| @@ -1111,7 +1110,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 ((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)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user