#include <glib.h>
#include <stdbool.h>
Go to the source code of this file.
Function Documentation
gpointer io_thread_call |
( |
GThreadFunc |
function, |
|
|
gpointer |
data |
|
) |
| |
Call a function synchronously in the I/O thread.
G_GNUC_PURE GMainContext* io_thread_context |
( |
void |
| ) |
|
void io_thread_deinit |
( |
void |
| ) |
|
guint io_thread_idle_add |
( |
GSourceFunc |
function, |
|
|
gpointer |
data |
|
) |
| |
void io_thread_init |
( |
void |
| ) |
|
G_GNUC_PURE bool io_thread_inside |
( |
void |
| ) |
|
Is the current thread the I/O thread?
void io_thread_quit |
( |
void |
| ) |
|
Ask the I/O thread to quit, but does not wait for it.
Usually, you don't need to call this function, because io_thread_deinit() includes this.
void io_thread_run |
( |
void |
| ) |
|
Run the I/O event loop synchronously in the current thread.
This can be called instead of io_thread_start(). For testing purposes only.
bool io_thread_start |
( |
GError ** |
error_r | ) |
|
G_GNUC_MALLOC GSource* io_thread_timeout_add |
( |
guint |
interval_ms, |
|
|
GSourceFunc |
function, |
|
|
gpointer |
data |
|
) |
| |
G_GNUC_MALLOC GSource* io_thread_timeout_add_seconds |
( |
guint |
interval, |
|
|
GSourceFunc |
function, |
|
|
gpointer |
data |
|
) |
| |