mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-28 15:14:51 +02:00
Clarification for g_mutex_trylock.
2001-05-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/tmpl/threads.sgml: Clarification for g_mutex_trylock.
This commit is contained in:
parent
cac4f011c0
commit
f7e009b00a
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* glib/tmpl/threads.sgml, glib/glib-overrides.txt: Updated.
|
* glib/tmpl/threads.sgml, glib/glib-overrides.txt: Updated.
|
||||||
|
|
||||||
|
* glib/tmpl/threads.sgml: Clarification for g_mutex_trylock.
|
||||||
|
|
||||||
2001-04-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2001-04-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/tmpl/hash_tables.sgml, glib/tmpl/misc_utils.sgml,
|
* glib/tmpl/hash_tables.sgml, glib/tmpl/misc_utils.sgml,
|
||||||
|
@ -550,7 +550,7 @@ called and will do nothing then.
|
|||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
#GMutex is not recursive, i.e. a thread will deadlock, if it already
|
#GMutex is not recursive, i.e. a thread will deadlock, if it already
|
||||||
has locked the #GMutex while calling g_mutex_lock(). Use
|
has locked @mutex while calling g_mutex_lock(). Use
|
||||||
#GStaticRecMutex instead, if you need recursive mutexes.
|
#GStaticRecMutex instead, if you need recursive mutexes.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
@ -571,6 +571,14 @@ This function can also be used, if g_thread_init() has not yet been
|
|||||||
called and will immediately return TRUE then.
|
called and will immediately return TRUE then.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
#GMutex is not recursive, i.e. g_mutex_trylock() will return FALSE,
|
||||||
|
if the current thread already has locked @mutex. Use
|
||||||
|
#GStaticRecMutex instead, if you need recursive mutexes.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
@mutex: a #GMutex
|
@mutex: a #GMutex
|
||||||
@Returns: TRUE, if @mutex could be locked
|
@Returns: TRUE, if @mutex could be locked
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user