git.annexia.org
/
ovirt-viewer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the Connect menu with vmlist.
[ovirt-viewer.git]
/
wui_thread.c
diff --git
a/wui_thread.c
b/wui_thread.c
index
8fbd930
..
060c7a2
100644
(file)
--- a/
wui_thread.c
+++ b/
wui_thread.c
@@
-243,6
+243,11
@@
wui_thread (gpointer _queue)
DEBUG ("WUI thread starting up");
DEBUG ("WUI thread starting up");
+ /* This checks wui_gthread global which is actually set in the
+ * main thread. Of course, it might not be set if the WUI thread
+ * runs first. Hence we yield for the main thread to run.
+ */
+ g_thread_yield ();
ASSERT_IS_WUI_THREAD ();
g_async_queue_ref (queue);
ASSERT_IS_WUI_THREAD ();
g_async_queue_ref (queue);