Package: glib

Function g-main-context-acquire

Lambda List

g-main-context-acquire (context)

Arguments

context -- a g-main-context instance

Return Value

True if the operation succeeded, and this thread is now the owner of context.

Details

Tries to become the owner of the specified context. If some other thread is the owner of the context, returns false immediately. Ownership is properly recursive: the owner can require ownership again and will release ownership when the g-main-context-release function is called as many times as the g-main-context-acquire function.
 

See also

2021-12-10