mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
Look for nanosleep function.
2001-06-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Look for nanosleep function. * gtimer.c: Use nanosleep for g_usleep, when found. * gtimer.c, gtimer.h: Add g_time_val_add function. Closes #54271. * gasyncqueue.c: Documentation updates. * gthreadpool.c: Use g_time_val_add now that we have it. * glib/glib-sections.txt, glib/tmpl/date.sgml: Add g_time_val_add. * glib/tmpl/threads.sgml: Updated.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
9600d5cd53
commit
632943f359
@@ -343,6 +343,9 @@ g_async_queue_try_pop_unlocked (GAsyncQueue* queue)
|
||||
* Pop data from the @queue. If no data is received before @end_time,
|
||||
* #NULL is returned.
|
||||
*
|
||||
* To easily calculate @end_time a combination of g_get_current_time()
|
||||
* and g_time_val_add() can be used.
|
||||
*
|
||||
* Return value: data from the queue or #NULL, when no data is
|
||||
* received before @end_time.
|
||||
**/
|
||||
@@ -370,6 +373,9 @@ g_async_queue_timed_pop (GAsyncQueue* queue, GTimeVal *end_time)
|
||||
* #NULL is returned. This function must be called while holding the
|
||||
* @queue's lock.
|
||||
*
|
||||
* To easily calculate @end_time a combination of g_get_current_time()
|
||||
* and g_time_val_add() can be used.
|
||||
*
|
||||
* Return value: data from the queue or #NULL, when no data is
|
||||
* received before @end_time.
|
||||
**/
|
||||
|
Reference in New Issue
Block a user