GLib.MainContext – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
MainContext
@default
current_source
get_thread_default
ref_thread_default
MainContext
acquire
add_poll
check
depth
dispatch
find_source_by_funcs_user_data
find_source_by_id
find_source_by_user_data
get_poll_func
invoke
invoke_full
is_owner
iteration
pending
pop_thread_default
prepare
push_thread_default
query
release
remove_poll
set_poll_func
wait
wakeup
MainContext
Object Hierarchy:
Description:
[
Compact
]
public
class
MainContext
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
weak
MainContext
@default
()
public
static
weak
Source
current_source
()
public
static
weak
MainContext
?
get_thread_default
()
public
static
MainContext
ref_thread_default
()
Creation methods:
public
MainContext
()
Methods:
public
bool
iteration
(
bool
may_block)
public
bool
pending
()
public
weak
Source
find_source_by_id
(
uint
source_id)
public
weak
Source
find_source_by_user_data
(
void
* user_data)
public
weak
Source
find_source_by_funcs_user_data
(
SourceFuncs
funcs,
void
* user_data)
public
void
wakeup
()
public
bool
acquire
()
public
void
release
()
public
bool
is_owner
()
public
bool
wait
(
Cond
cond,
Mutex
mutex)
public
bool
prepare
(
out
int
priority)
public
int
query
(
int
max_priority,
out
int
timeout_,
PollFD
[] fds)
public
bool
check
(
int
max_priority,
PollFD
[] fds)
public
void
dispatch
()
public
void
set_poll_func
(
PollFunc
func)
public
PollFunc
get_poll_func
()
public
void
add_poll
(
ref
PollFD
fd,
int
priority)
public
void
remove_poll
(
ref
PollFD
fd)
public
int
depth
()
public
void
push_thread_default
()
public
void
pop_thread_default
()
public
void
invoke
(
owned
SourceFunc
function,
int
priority =
DEFAULT
)
public
void
invoke_full
(
int
priority,
owned
SourceFunc
function)