From 208eda2e59d9fc5340def61220fc8a6d8469a4af Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 3 Apr 2006 21:04:34 +0000 Subject: [PATCH] Mention that the Win32 backend should not be used from multiple threads. 2006-04-04 Tor Lillqvist * gdk/tmpl/threads.sgml: Mention that the Win32 backend should not be used from multiple threads. --- docs/reference/ChangeLog | 5 +++++ docs/reference/gdk/tmpl/threads.sgml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 5dfe20fb9..7331bccd4 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2006-04-04 Tor Lillqvist + + * gdk/tmpl/threads.sgml: Mention that the Win32 backend should not + be used from multiple threads. + 2006-03-31 Matthias Clasen * gtk/gtk-sections.txt: Updates diff --git a/docs/reference/gdk/tmpl/threads.sgml b/docs/reference/gdk/tmpl/threads.sgml index c973ef948..0400280ca 100644 --- a/docs/reference/gdk/tmpl/threads.sgml +++ b/docs/reference/gdk/tmpl/threads.sgml @@ -22,6 +22,11 @@ which protects all use of GTK+. That is, only one thread can use GTK+ at any given time. +Unfortunately the above holds with the X11 backend only. With the +Win32 backend, GDK calls should not be attempted from multiple threads +at all. + + You must call g_thread_init() and gdk_threads_init() before executing any other GTK+ or GDK functions in a threaded GTK+ program.