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)
GError *err = NULL;
GString *string = g_string_new (NULL);
while (channel->is_readable != TRUE);
while (channel->is_readable != TRUE)
gtk_main_iteration ();
do
{
......
......@@ -574,7 +574,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
GString *string = g_string_new (NULL);
gboolean node_added = FALSE;
while (channel->is_readable != TRUE);
while (channel->is_readable != TRUE)
gtk_main_iteration ();
do
{
......
......@@ -266,7 +266,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data)
GError *err = NULL;
string = g_string_new (NULL);
while (channel->is_readable == FALSE);
while (channel->is_readable == FALSE)
gtk_main_iteration ();
do
{
......
......@@ -54,7 +54,8 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
string = g_string_new (NULL);
while (channel->is_readable != TRUE);
while (channel->is_readable != TRUE)
gtk_main_iteration ();
do
{
......
......@@ -270,7 +270,8 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data)
gint status;
string = g_string_new (NULL);
while (channel->is_readable != TRUE);
while (channel->is_readable != TRUE)
gtk_main_iteration ();
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