A background thread that polls a GLib main context.
More...
#include <glib_mainloop_on_qeventloop.h>
|
|
void | polled (void) |
| | Signal emitted when the polling operation detects activity.
|
| |
|
| | GLibPoller (GMainContext *context) |
| | Constructs a new GLibPoller.
|
| |
|
| ~GLibPoller () |
| | Destroys the GLibPoller.
|
| |
|
void | run () override |
| | Executes the polling loop in the background thread.
|
| |
A background thread that polls a GLib main context.
◆ GLibPoller()
| GLibPoller::GLibPoller |
( |
GMainContext * |
context | ) |
|
|
explicitprotected |
Constructs a new GLibPoller.
- Parameters
-
| context | The GLib main context to poll. |
◆ allocated_fds_
| int GLibPoller::allocated_fds_ |
|
protected |
The number of allocated file descriptors in the array.
◆ ctx_
| GMainContext* GLibPoller::ctx_ |
|
protected |
The GLib main context being polled.
◆ dispatched_
| QWaitCondition GLibPoller::dispatched_ |
|
protected |
Condition variable to signal when events are dispatched.
◆ fds_
| GPollFD* GLibPoller::fds_ |
|
protected |
Array of file descriptors being polled.
◆ mutex_
| QMutex GLibPoller::mutex_ |
|
protected |
Mutex for thread synchronization.
◆ nfds_
The number of active file descriptors being polled.
◆ priority_
| int GLibPoller::priority_ |
|
protected |
The maximum priority of the events to be dispatched.
The documentation for this class was generated from the following files: