GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit ea28f59f authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

Simplify the loop for the fix below.

Tue Feb 22 18:33:07 2005  Manish Singh  <yosh@gimp.org>

        * glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
parent 0e2279a0
Tue Feb 22 18:33:07 2005 Manish Singh <yosh@gimp.org>
* glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_new): Use a memchunk for
......
Tue Feb 22 18:33:07 2005 Manish Singh <yosh@gimp.org>
* glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_new): Use a memchunk for
......
Tue Feb 22 18:33:07 2005 Manish Singh <yosh@gimp.org>
* glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_new): Use a memchunk for
......
Tue Feb 22 18:33:07 2005 Manish Singh <yosh@gimp.org>
* glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_new): Use a memchunk for
......
......@@ -240,18 +240,8 @@ g_usleep (gulong microseconds)
struct timespec request, remaining;
request.tv_sec = microseconds / G_USEC_PER_SEC;
request.tv_nsec = 1000 * (microseconds % G_USEC_PER_SEC);
while (1)
{
if (nanosleep (&request, &remaining) == -1)
{
if (errno == EINTR)
request = remaining;
else
break;
}
else
break;
}
while (nanosleep (&request, &remaining) == -1 && errno == EINTR)
request = remaining;
# else /* !HAVE_NANOSLEEP */
if (g_thread_supported ())
{
......
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