Package: glib

Function g-main-loop-new

Lambda List

g-main-loop-new (context is-running)

Arguments

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

Return Value

A new g-main-loop instance.

Details

Creates a new main loop.

Example

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

See also

2021-12-10