From 03e389eb43688d7afb256d37069a19b34ebf3c4e Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 22 Apr 2019 16:05:50 +0200 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig --- docs/src/async.rst | 4 ++++ 1 file changed, 4 insertions(+) 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 `_. + 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