Poll.writeControl

bool writeControl()

Write a byte to the control socket of the controllable set. This function is mostly useful for timer #GstPoll objects created with [gst.poll.Poll.newTimer].

It will make any current and future [gst.poll.Poll.wait] function return with 1, meaning the control socket is set. After an equal amount of calls to [gst.poll.Poll.readControl] have been performed, calls to [gst.poll.Poll.wait] will block again until their timeout expired.

This function only works for timer #GstPoll objects created with [gst.poll.Poll.newTimer].

Returns

true on success. false when when the byte could not be written.

errno contains the detailed error code but will never be EAGAIN, EINTR or EWOULDBLOCK. false always signals a critical error.