set the output trigger threshold
#include <sys/dev.h> int dev_osize (int fd, int size);
This function changes the output threshold to the given size. When the output buffer has room for this many characters (the default is 1), any sending proxies waiting on _DEV_EVENT_OUTPUT are triggered.
The previous value of the output trigger threshold. If an error occurs, it returns -1, and sets errno.
/* Wake up when there's room to transmit at least 10 more characters. */ dev_osize (fd, 10); dev_arm (fd, proxy, _DEV_EVENT_OUTPUT);
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |