Package: glib

Function glib:main-loop-new

Lambda List

glib:main-loop-new (context is-running)

Arguments

context -- a g:main-context instance, if nil, the default context will be used
is-running -- set to true to indicate that the main loop is running

Return Value

The new g:main-loop instance.

Details

Creates a new main loop.

Examples

Create a running main loop with a default context and quit the main loop.
(setq mainloop (g:main-loop-new nil t))
=> #.(SB-SYS:INT-SAP #X0808DF88)
(g:main-loop-is-running mainloop) => T
(g:main-loop-quit mainloop)
(g:main-loop-is-running mainloop) => NIL    
 

See also

2024-11-6