3 (defcfun gdk-threads-init
:void
)
4 (glib:at-init
() (gdk-threads-init))
6 (defcfun gdk-threads-enter
:void
)
7 (export 'gdk-threads-enter
)
9 (defcfun gdk-threads-leave
:void
)
10 (export 'gdk-threads-leave
)
12 ;; void gdk_threads_set_lock_functions (GCallback enter_fn,
13 ;; GCallback leave_fn);
15 (defcallback source-func-callback
:boolean
17 (funcall (stable-pointer-value data
)))
19 (defcallback stable-pointer-free-destroy-notify-callback
:void
((data :pointer
))
20 (free-stable-pointer data
))
22 (defcfun gdk_threads_add_idle_full
:uint
26 (destroy-notify :pointer
))
28 (defun gdk-threads-add-idle-full (priority function
)
29 (gdk_threads_add_idle_full priority
30 (callback source-func-callback
)
31 (allocate-stable-pointer function
)
32 (callback stable-pointer-free-destroy-notify-callback
)))
34 (export 'gdk-threads-add-idle-full
)
36 (defcfun gdk_threads_add_timeout_full
:uint
41 (destroy-notify :pointer
))
43 (defun gdk-threads-add-timeout-full (priority interval-msec function
)
44 (gdk_threads_add_timeout_full priority interval-msec
45 (callback source-func-callback
)
46 (allocate-stable-pointer function
)
47 (callback stable-pointer-free-destroy-notify-callback
)))
49 (export 'gdk-threads-add-timeout-full
)
51 (defcfun gdk_threads_add_timeout_seconds_full
:uint
56 (destroy-notify :pointer
))
58 (defun gdk-threads-add-timeout-seconds-full (priority interval-sec function
)
59 (gdk_threads_add_timeout_seconds_full priority interval-sec
60 (callback source-func-callback
)
61 (allocate-stable-pointer function
)
62 (callback stable-pointer-free-destroy-notify-callback
)))
64 (export 'gdk-threads-add-timeout-seconds-full
)