write_control


Description:

public bool write_control ()

Write a byte to the control socket of the controllable this.

This function is mostly useful for timer Poll objects created with Poll.timer.

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

This function only works for timer Poll objects created with Poll.timer.

Parameters:

this

a Poll.

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.




2022 vala-language.org