mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 16:32:18 +01:00 
			
		
		
		
	g_system_thread_create: SystemThread -> RealThread
Just like g_system_thread_wait().
This commit is contained in:
		| @@ -1086,7 +1086,7 @@ g_system_thread_create (GThreadFunc       thread_func, | |||||||
|                         gpointer          arg, |                         gpointer          arg, | ||||||
|                         gulong            stack_size, |                         gulong            stack_size, | ||||||
|                         gboolean          joinable, |                         gboolean          joinable, | ||||||
|                         gpointer          thread, |                         GRealThread      *thread, | ||||||
|                         GError          **error) |                         GError          **error) | ||||||
| { | { | ||||||
|   pthread_attr_t attr; |   pthread_attr_t attr; | ||||||
| @@ -1111,7 +1111,7 @@ g_system_thread_create (GThreadFunc       thread_func, | |||||||
|   posix_check_cmd (pthread_attr_setdetachstate (&attr, |   posix_check_cmd (pthread_attr_setdetachstate (&attr, | ||||||
|           joinable ? PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED)); |           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)); |   posix_check_cmd (pthread_attr_destroy (&attr)); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -502,7 +502,7 @@ g_system_thread_create (GThreadFunc       func, | |||||||
|                         gpointer          data, |                         gpointer          data, | ||||||
|                         gulong            stack_size, |                         gulong            stack_size, | ||||||
|                         gboolean          joinable, |                         gboolean          joinable, | ||||||
|                         gpointer          thread, |                         GRealThread      *thread, | ||||||
|                         GError          **error) |                         GError          **error) | ||||||
| { | { | ||||||
|   guint ignore; |   guint ignore; | ||||||
| @@ -529,7 +529,7 @@ g_system_thread_create (GThreadFunc       func, | |||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   *(GThreadData **)thread = retval; |   *(GThreadData **) &(thread->system_thread) = retval; | ||||||
| } | } | ||||||
|  |  | ||||||
| void | void | ||||||
|   | |||||||
| @@ -812,7 +812,7 @@ g_thread_new_internal (const gchar   *name, | |||||||
|   result->name = name; |   result->name = name; | ||||||
|   G_LOCK (g_thread_new); |   G_LOCK (g_thread_new); | ||||||
|   g_system_thread_create (proxy, result, stack_size, joinable, |   g_system_thread_create (proxy, result, stack_size, joinable, | ||||||
|                           &result->system_thread, &local_error); |                           result, &local_error); | ||||||
|   G_UNLOCK (g_thread_new); |   G_UNLOCK (g_thread_new); | ||||||
|  |  | ||||||
|   if (local_error) |   if (local_error) | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ G_GNUC_INTERNAL void     g_system_thread_create (GThreadFunc       func, | |||||||
|                                                  gpointer          data, |                                                  gpointer          data, | ||||||
|                                                  gulong            stack_size, |                                                  gulong            stack_size, | ||||||
|                                                  gboolean          joinable, |                                                  gboolean          joinable, | ||||||
|                                                  gpointer          thread, |                                                  GRealThread      *thread, | ||||||
|                                                  GError          **error); |                                                  GError          **error); | ||||||
| G_GNUC_INTERNAL | G_GNUC_INTERNAL | ||||||
| void            g_system_thread_free            (GRealThread  *thread); | void            g_system_thread_free            (GRealThread  *thread); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user