Import line: | Gst = imports.gi.Gst; |
GIR File: | Gst-0.10.gir |
C documentation: | GstPoll |
Struct : | Poll |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gst.Poll.timer
()
:
Gst.Poll
Create a new Gst.Poll
Create a new Gst.Poll
|
||
Add a file descriptor to the file descriptor set.
Add a file descriptor to the file descriptor set.
|
Gst.Poll | |
Check if fd in set has data to be read.
Check if fd in set has data to be read.
|
Gst.Poll | |
Check if fd in set can be used for writing.
Check if fd in set can be used for writing.
|
Gst.Poll | |
Control whether the descriptor fd in set will be monitored for readability.
Control whether the descriptor fd in set will be monitored for readability.
|
Gst.Poll | |
Control whether the descriptor fd in set will be monitored for writability.
Control whether the descriptor fd in set will be monitored for writability.
|
Gst.Poll | |
Check if fd in set has closed the connection.
Check if fd in set has closed the connection.
|
Gst.Poll | |
Check if fd in set has an error.
Check if fd in set has an error.
|
Gst.Poll | |
fd_ignored
(PollFD fd)
:
none
Mark fd as ignored so that the next call to gst_poll_wait() will yield the same result for fd as last time.
Mark fd as ignored so that the next call to gst_poll_wait() will yield the same result for fd as last time. This function must be called if no operation (read/write/recv/send/etc.) will be performed on fd before the next call to gst_poll_wait(). The reason why this is needed is because the underlying implementation might not allow querying the fd more than once between calls to one of the re-enabling operations.
|
Gst.Poll | |
free
()
:
none
Free a file descriptor set.
Free a file descriptor set.
|
Gst.Poll | |
read_control
()
:
Boolean
Read a byte from the control socket of the controllable set.
Read a byte from the control socket of the controllable set. This function is mostly useful for timer GstPoll objects created with gst_poll_new_timer(). was no byte to read.
|
Gst.Poll | |
Remove a file descriptor from the file descriptor set.
Remove a file descriptor from the file descriptor set.
|
Gst.Poll | |
restart
()
:
none
Restart any gst_poll_wait() that is in progress.
Restart any gst_poll_wait() that is in progress. This function is typically used after adding or removing descriptors to set. If set is not controllable, then this call will have no effect.
|
Gst.Poll | |
When controllable is TRUE, this function ensures that future calls to gst_poll_wait() will be affected by gst_poll_restart() and gst_poll_set_flushing().
|
Gst.Poll | |
set_flushing
(Boolean flushing)
:
none
When flushing is TRUE, this function ensures that current and future calls to gst_poll_wait() will return -1, with errno set to EBUSY.
When flushing is TRUE, this function ensures that current and future calls to gst_poll_wait() will return -1, with errno set to EBUSY. Unsetting the flushing state will restore normal operation of set.
|
Gst.Poll | |
Wait for activity on the file descriptors in set.
Wait for activity on the file descriptors in set. This function waits up to the specified timeout. A timeout of GST_CLOCK_TIME_NONE waits forever. For GstPoll objects created with gst_poll_new(), this function can only be called from a single thread at a time. If called from multiple threads, -1 will be returned with errno set to EPERM. This is not true for timer GstPoll objects created with gst_poll_new_timer(), where it is allowed to have multiple threads waiting simultaneously. activity was detected after timeout. If an error occurs, -1 is returned and errno is set.
|
Gst.Poll | |
write_control
()
:
Boolean
Write a byte to the control socket of the controllable set.
Write a byte to the control socket of the controllable set. This function is mostly useful for timer GstPoll objects created with gst_poll_new_timer(). It will make any current and future gst_poll_wait() function return with 1, meaning the control socket is set. After an equal amount of calls to gst_poll_read_control() have been performed, calls to gst_poll_wait() will block again until their timeout expired. byte could not be written.
|
Gst.Poll |
None |