Question about new functions in GDK 2.11
- From: "Tomasz Jankowski" <tomcioj gmail com>
- To: "GTK Development" <gtk-devel-list gnome org>
- Subject: Question about new functions in GDK 2.11
- Date: Thu, 7 Jun 2007 00:42:42 +0200
Hi!
My question isn't really important, I'm only curious ;P
Why did you add functions below to GDK?
- gdk_threads_add_idle
- gdk_threads_add_idle_full
- gdk_threads_add_timeout
- gdk_threads_add_timeout_full
If we write multi thread aplication in GTK+ we surround gtk_main () function with gdk_threads_enter () and gdk_threads_leave (), so any call of g_idle_add... or g_timeout... functions will be automatically thread safe, am I right?
Can someone explain it for me?
--
Cya!
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]