Home
last modified time | relevance | path

Searched refs:blocking (Results 1 – 21 of 21) sorted by relevance

/libuv/docs/src/guide/
H A Dbasics.rst6 and other activities. libuv offers core utilities like timers, non-blocking
37 **blocking**. The actual write to a hard disk or reading from a network, takes
43 One of the standard solutions is to use threads. Each blocking I/O operation is
44 started in a separate thread (or in a thread pool). When the blocking function
49 non-blocking** style. Most modern operating systems provide event notification
57 **non-blocking** because the application process was free to do other tasks.
59 events can be treated as just another libuv event. The non-blocking ensures
67 polling to perform tasks in a non-blocking manner.
H A Dthreads.rst11 asynchronously that is actually blocking, by spawning a thread and collecting
200 However, a lot of existing code out there features blocking functions (for example
209 a separate thread so that the blocking and CPU bound task does not prevent the
238 For writing wrappers to blocking libraries, a common :ref:`pattern <baton>`
336 non-blocking and will return immediately.
384 2. ``lib.do`` is supposed to be non-blocking but the third party lib is
385 blocking, so the binding uses ``uv_queue_work``.
H A Dnetworking.rst5 interface, some things are easier, all are non-blocking, but the concepts stay
100 non-blocking UDP support via the `uv_udp_t` handle (for receiving) and
H A Dfilesystem.rst10 <networking>`. Socket operations use the non-blocking operations provided
11 by the operating system. Filesystem operations use blocking functions
H A Dutilities.rst200 will not allow such access, providing only a standard blocking function which
213 using the libuv event loop, and use the non-blocking, async multi_ interface to
/libuv/docs/src/
H A Dstream.rst30 this type. When a stream is in non-blocking mode, write requests sent
229 .. c:function:: int uv_stream_set_blocking(uv_stream_t* handle, int blocking)
231 Enable or disable blocking mode for a stream.
233 When blocking mode is enabled all writes complete synchronously. The
245 Also libuv currently makes no ordering guarantee when the blocking mode
247 recommended to set the blocking mode immediately after opening or creating
H A Dtty.rst78 refers to a TTY. This lets libuv put the tty in non-blocking mode without
85 If reopening the TTY fails, libuv falls back to blocking writes.
H A Didle.rst12 the loop will perform a zero timeout poll instead of blocking for i/o.
H A Ddesign.rst49 I/O is performed on non-blocking sockets which are polled using the best mechanism available
82 #. Poll timeout is calculated. Before blocking for I/O the loop calculates for how long it should
127 so the current approach is to run blocking file I/O operations in a thread pool.
H A Dpoll.rst77 .. versionchanged:: 1.2.2 the file descriptor is set to non-blocking mode.
84 .. versionchanged:: 1.2.2 the socket is set to non-blocking mode.
H A Dpipe.rst48 .. versionchanged:: 1.2.1 the file descriptor is set to non-blocking mode.
162 function is blocking.
H A Dtcp.rst70 .. versionchanged:: 1.2.1 the file descriptor is set to non-blocking mode.
H A Dprocess.rst162 * handle in non-blocking mode in the child. This may cause loss of data,
H A Dloop.rst146 If this function was called before blocking for i/o, the loop won't block
H A Dudp.rst186 .. versionchanged:: 1.2.1 the file descriptor is set to non-blocking mode.
/libuv/src/win/
H A Dstream.c242 int uv_stream_set_blocking(uv_stream_t* handle, int blocking) { in uv_stream_set_blocking() argument
246 if (blocking != 0) in uv_stream_set_blocking()
/libuv/src/unix/
H A Dstream.c1562 int uv_stream_set_blocking(uv_stream_t* handle, int blocking) { in uv_stream_set_blocking() argument
1566 return uv__nonblock(uv__stream_fd(handle), !blocking); in uv_stream_set_blocking()
/libuv/
H A DMakefile.am232 test/test-pipe-set-non-blocking.c \
H A DChangeLog218 * win,pipe: restore fallback handling for blocking pipes (Jameson Nash)
3201 * android: fix blocking recvmsg due to netlink bug (Jacob Segal)
3544 * darwin: fix setting fd to non-blocking in select(() trick (Saúl Ibarra
4367 * win: fix pipe blocking writes (Alexis Campailla)
4721 * unix: add flag for blocking SIGPROF during poll (Ben Noordhuis)
4754 * unix: add flag for blocking SIGPROF during poll (Ben Noordhuis)
5154 * unix: fallback to blocking writes if reopening a tty fails (Saúl Ibarra
5998 * stream: add an API to make streams do blocking writes (Henry Rawas)
6098 after blocking (Ben Noordhuis)
H A DCMakeLists.txt606 test/test-pipe-set-non-blocking.c
/libuv/include/
H A Duv.h583 UV_EXTERN int uv_stream_set_blocking(uv_stream_t* handle, int blocking);

Completed in 130 milliseconds