From 901824ba77aa20bfa93c8a283028d1e3406c359d Mon Sep 17 00:00:00 2001 From: Andrius Bentkus Date: Wed, 25 Feb 2015 12:46:35 +0100 Subject: [PATCH] doc: clarify that the thread pool primites are not thread safe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/227 Reviewed-By: Saúl Ibarra Corretgé --- docs/src/threadpool.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/threadpool.rst b/docs/src/threadpool.rst index 89f00844e..18949507e 100644 --- a/docs/src/threadpool.rst +++ b/docs/src/threadpool.rst @@ -18,6 +18,10 @@ libuv preallocates and initializes the maximum number of threads allowed by ``UV_THREADPOOL_SIZE``. This causes a relatively minor memory overhead (~1MB for 128 threads) but increases the performance of threading at runtime. +.. note:: + Note that even though a global thread pool which is shared across all events + loops is used, the functions are not thread safe. + Data types ----------