Package: gdk

Function gdk:threads-init

Lambda List

gdk:threads-init ()

Details

Initializes GDK so that it can be used from multiple threads in conjunction with the gdk:threads-enter and gdk:threads-leave functions. This call must be made before any use of the main loop from GTK. To be safe, call it before the gtk_init() function.

Warning

The gdk:threads-init function has been deprecated since version 3.6 and should not be used in newly written code. All GDK and GTK calls should be made from the main thread.
 

See also

2024-6-29