Lines Matching +full:wait +full:- +full:on +full:- +full:read
2 * util/tube.h - pipe service
30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
65 /** pipe end to read from */
67 /** pipe end to write on */
78 /** size of current read command, may be partially read */
80 /** the current read command content, malloced, can be partially read*/
103 /** lock on the list of outstanding items */
105 /** list of outstanding results on pipe */
126 * @return: new tube struct or NULL on error.
138 * @param tube: the tube to write on.
140 * the socket to write on. Is nonblocking.
142 * and back to non-blocking at exit of function.
146 * If the first write fails the function returns -1.
149 * return 0 on error, in that case blocking/nonblocking of socket is
157 * Read length bytes followed by message.
158 * @param tube: The tube to read on.
159 * If that tube is a pipe, its read fd is used as
160 * the socket to read on. Is nonblocking.
162 * and back to non-blocking at exit of function.
165 * @param nonblock: if set to true, the first read is nonblocking.
166 * If the first read fails the function returns -1.
167 * If set false, the first read is blocking.
169 * return 0 on error, in that case blocking/nonblocking of socket is
170 * unknown. On EOF 0 is returned.
177 * Close read part of the pipe.
178 * The tube can no longer be read from.
179 * @param tube: tube to operate on.
186 * @param tube: tube to operate on.
191 * See if data is ready for reading on the tube without blocking.
194 * true on pipe_closed.
199 * Wait for data to be ready for reading on the tube. is blocking.
201 * @param tube: the tube to wait on.
202 * @return: if there was something to read (false on error).
203 * true on pipe_closed.
208 * Wait for data to be ready with a timeout.
209 * @param tube: the tube to wait on.
211 * @return 1 if there is something to read within timeout, readability.
212 * 0 on a timeout. On failures -1, like errors. */
224 * Background registration of a read listener, callback when read completed.
226 * @param tube: tube to listen on
230 * @return true if successful, false on error.
244 * @param tube: tube to write on
245 * @param base: what base to register event handler on.
246 * @return true if successful, false on error.
260 * Not locked behind the scenes, call from one thread or lock on outside.
261 * @param tube: what tube to queue on.
263 * Put at the end of the to-send queue.
265 * @return 0 on failure (msg freed).