mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01: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: Clarification for g_mutex_trylock.
|
||||
|
||||
2001-04-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/tmpl/hash_tables.sgml, glib/tmpl/misc_utils.sgml,
|
||||
|
@ -550,7 +550,7 @@ called and will do nothing then.
|
||||
<note>
|
||||
<para>
|
||||
#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.
|
||||
</para>
|
||||
</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.
|
||||
</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
|
||||
@Returns: TRUE, if @mutex could be locked
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user