Lines Matching +full:wait +full:- +full:on +full:- +full:write

2  * util/tube.h - pipe service
30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
67 /** pipe end to write on */
83 /** background write queue, commpoint to write results back */
103 /** lock on the list of outstanding items */
105 /** list of outstanding results on pipe */
113 * List of results (arbitrary command serializations) to write back
118 /** serialized buffer to write */
120 /** length to write */
126 * @return: new tube struct or NULL on error.
137 * Write length bytes followed by message.
138 * @param tube: the tube to write on.
139 * If that tube is a pipe, its write fd is used as
140 * the socket to write on. Is nonblocking.
142 * and back to non-blocking at exit of function.
145 * @param nonblock: if set to true, the first write is nonblocking.
146 * If the first write fails the function returns -1.
147 * If set false, the first write is blocking.
149 * return 0 on error, in that case blocking/nonblocking of socket is
158 * @param tube: The tube to read on.
160 * the socket to read on. Is nonblocking.
162 * and back to non-blocking at exit of function.
166 * If the first read fails the function returns -1.
169 * return 0 on error, in that case blocking/nonblocking of socket is
170 * unknown. On EOF 0 is returned.
179 * @param tube: tube to operate on.
184 * Close write part of the pipe.
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.
212 * 0 on a timeout. On failures -1, like errors. */
226 * @param tube: tube to listen on
230 * @return true if successful, false on error.
242 * Start background write handler for the pipe.
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.
251 * Remove bg write setup from event base.
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).