X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgasyncqueue.c;h=39c035d865a07e9ee83076f355c326557ae01280;hb=632943f359274cef42a6a77d4fa43caeedef7d87;hp=126bb1d846a9679ccbd3a0898d6841bb6d01834c;hpb=9600d5cd53cc8bd811c89db90238cfd1f919dda3;p=platform%2Fupstream%2Fglib.git diff --git a/glib/gasyncqueue.c b/glib/gasyncqueue.c index 126bb1d..39c035d 100644 --- a/glib/gasyncqueue.c +++ b/glib/gasyncqueue.c @@ -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. **/