After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751751 - Wrong docs of g_async_queue_remove
Wrong docs of g_async_queue_remove
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.45.x
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-06-30 20:53 UTC by Krzesimir Nowak
Modified: 2015-07-27 10:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix mistake in g_async_queue_remove docs. (730 bytes, patch)
2015-06-30 20:53 UTC, Krzesimir Nowak
reviewed Details | Review

Description Krzesimir Nowak 2015-06-30 20:53:16 UTC
Created attachment 306436 [details] [review]
Fix mistake in g_async_queue_remove docs.

It actually may block, contrary to what docs say.
Comment 1 Matthias Clasen 2015-07-26 19:34:09 UTC
Review of attachment 306436 [details] [review]:

Well, you are technically correct that the function will block until it can obtain the lock. But what the documentation alludes to is that the function does not wait until the data appears in the queue. It just tries to remove it and returns FALSE if it isn't found. Compare with g_async_queue_pop.