aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-04-28 23:16:04 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2020-04-28 23:16:06 +0200
commit06b2f13bad0db043a10952f2a16258c236ff451f (patch)
tree08d9da84975d04c84bda4b14873eed8d6cf9dddb /docs/src
parent43b456dcb375319ad0e45931ddddd88fd3dd7ee1 (diff)
downloadlibuv-06b2f13bad0db043a10952f2a16258c236ff451f.tar.gz
libuv-06b2f13bad0db043a10952f2a16258c236ff451f.zip
doc: add uv_replace_allocator thread safety warning
PR-URL: https://github.com/libuv/libuv/pull/2815/ Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index b3cf43ea..9c157063 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -233,6 +233,8 @@ API
sure the allocator is changed while no memory was allocated with
the previous allocator, or that they are compatible.
+ .. warning:: Allocator must be thread-safe.
+
.. c:function:: void uv_library_shutdown(void);
.. versionadded:: 1.38.0