This initiates GtkD to supports multi threaded programs.
read full documantation at http://gtk.org/faq/#AEN482
from the FAQ:
"There is a single global lock that you must acquire with
gdk_threads_enter() before making any GDK calls,
and release with gdk_threads_leave() afterwards throughout your code."
This is to be used on any call to GDK not executed from the main thread.
This initiates GtkD to supports multi threaded programs. read full documantation at http://gtk.org/faq/#AEN482 from the FAQ: "There is a single global lock that you must acquire with gdk_threads_enter() before making any GDK calls, and release with gdk_threads_leave() afterwards throughout your code." This is to be used on any call to GDK not executed from the main thread.