aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/threading.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/src/threading.rst b/docs/src/threading.rst
index ca9fb0ce..d379677a 100644
--- a/docs/src/threading.rst
+++ b/docs/src/threading.rst
@@ -119,6 +119,15 @@ Threads
.. versionadded:: 1.45.0
+.. c:function:: int uv_thread_getcpu(void)
+
+ Gets the CPU number on which the calling thread is running.
+
+ .. note::
+ Currently only implemented on Windows, Linux and FreeBSD.
+
+ .. versionadded:: 1.45.0
+
.. c:function:: uv_thread_t uv_thread_self(void)
.. c:function:: int uv_thread_join(uv_thread_t *tid)
.. c:function:: int uv_thread_equal(const uv_thread_t* t1, const uv_thread_t* t2)