aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2019-04-22 16:05:50 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2019-04-23 10:46:56 +0200
commit03e389eb43688d7afb256d37069a19b34ebf3c4e (patch)
treec8be01ba0916c1b82d5c240af86ff2246944cd60 /docs/src
parentab5859129b2c1da33815673862d39ee6105f6437 (diff)
downloadlibuv-03e389eb43688d7afb256d37069a19b34ebf3c4e.tar.gz
libuv-03e389eb43688d7afb256d37069a19b34ebf3c4e.zip
doc: mark uv_async_send() as async-signal-safe
Refs: https://github.com/libuv/libuv/issues/2173 PR-URL: https://github.com/libuv/libuv/pull/2273 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/async.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/async.rst b/docs/src/async.rst
index 02e6a58e..bf611692 100644
--- a/docs/src/async.rst
+++ b/docs/src/async.rst
@@ -50,6 +50,10 @@ API
It's safe to call this function from any thread. The callback will be called on the
loop thread.
+ .. note::
+ :c:func:`uv_async_send` is `async-signal-safe <http://man7.org/linux/man-pages/man7/signal-safety.7.html>`_.
+ It's safe to call this function from a signal handler.
+
.. warning::
libuv will coalesce calls to :c:func:`uv_async_send`, that is, not every call to it will
yield an execution of the callback. For example: if :c:func:`uv_async_send` is called 5