diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-11-15 19:37:28 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-16 16:20:48 +0900 |
commit | dd2db852ccfcfe11481f636c9d1e3bc8712e06af (patch) | |
tree | 82336944d843304404409a77b4edf5fe21001352 /gdk/gdkthreads.h | |
parent | 7524d5fcbec3e9155c18b3e45bbac23527ab68d0 (diff) | |
download | gtk+-dd2db852ccfcfe11481f636c9d1e3bc8712e06af.tar.gz |
docs: Move documentation to inline comments: gdkthreads
Diffstat (limited to 'gdk/gdkthreads.h')
-rw-r--r-- | gdk/gdkthreads.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdk/gdkthreads.h b/gdk/gdkthreads.h index 743e6ec6fa..ad2f09d5d9 100644 --- a/gdk/gdkthreads.h +++ b/gdk/gdkthreads.h @@ -64,7 +64,24 @@ guint gdk_threads_add_timeout_seconds (guint interval, GSourceFunc function, gpointer data); +/** + * GDK_THREADS_ENTER: + * + * This macro marks the beginning of a critical section in which GDK and + * GTK+ functions can be called safely and without causing race + * conditions. Only one thread at a time can be in such a critial + * section. The macro expands to a no-op if #G_THREADS_ENABLED has not + * been defined. Typically gdk_threads_enter() should be used instead of + * this macro. + */ #define GDK_THREADS_ENTER() gdk_threads_enter() + +/** + * GDK_THREADS_LEAVE: + * + * This macro marks the end of a critical section + * begun with #GDK_THREADS_ENTER. + */ #define GDK_THREADS_LEAVE() gdk_threads_leave() G_END_DECLS |