mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Initialize service_loop before running the service thread
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666129
This commit is contained in:
parent
a6eda97d8e
commit
162bafee37
@ -1678,10 +1678,10 @@ codegen_test_peer (void)
|
||||
GVariant *value;
|
||||
|
||||
/* bring up a server - we run the server in a different thread to avoid deadlocks */
|
||||
service_loop = NULL;
|
||||
service_thread = g_thread_new ("codegen_test_peer",
|
||||
codegen_service_thread_func,
|
||||
NULL);
|
||||
service_loop = NULL;
|
||||
while (service_loop == NULL)
|
||||
g_thread_yield ();
|
||||
g_assert (codegen_server != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user