Commit 92181605 authored by Victor Ananjevsky's avatar Victor Ananjevsky

do not use empty loops for waiting

parent ce7e39cd
...@@ -169,7 +169,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data) ...@@ -169,7 +169,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data)
GError *err = NULL; GError *err = NULL;
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
while (channel->is_readable != TRUE); while (channel->is_readable != TRUE)
gtk_main_iteration ();
do do
{ {
......
...@@ -574,7 +574,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data) ...@@ -574,7 +574,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
gboolean node_added = FALSE; gboolean node_added = FALSE;
while (channel->is_readable != TRUE); while (channel->is_readable != TRUE)
gtk_main_iteration ();
do do
{ {
......
...@@ -266,7 +266,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data) ...@@ -266,7 +266,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data)
GError *err = NULL; GError *err = NULL;
string = g_string_new (NULL); string = g_string_new (NULL);
while (channel->is_readable == FALSE); while (channel->is_readable == FALSE)
gtk_main_iteration ();
do do
{ {
......
...@@ -54,7 +54,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data) ...@@ -54,7 +54,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
string = g_string_new (NULL); string = g_string_new (NULL);
while (channel->is_readable != TRUE); while (channel->is_readable != TRUE)
gtk_main_iteration ();
do do
{ {
......
...@@ -270,7 +270,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data) ...@@ -270,7 +270,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data)
gint status; gint status;
string = g_string_new (NULL); string = g_string_new (NULL);
while (channel->is_readable != TRUE); while (channel->is_readable != TRUE)
gtk_main_iteration ();
do do
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment