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
Threads.enter before making any GDK calls,
and release with 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 Threads.enter before making any GDK calls, and release with Threads.leave afterwards throughout your code." This is to be used on any call to GDK not executed from the main thread.