aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authordaomingq <daoming.qiu@intel.com>2022-11-16 01:01:29 +0800
committerGitHub <noreply@github.com>2022-11-15 18:01:29 +0100
commit64669fdd8de8fce478e6ce1f7c954905f682c75b (patch)
tree91f0a2a9d9e3a0fa31463cb2802e36850774d203 /docs/src
parente14158605336d2852dc5489204d2eb7fbe38a97d (diff)
downloadlibuv-64669fdd8de8fce478e6ce1f7c954905f682c75b.tar.gz
libuv-64669fdd8de8fce478e6ce1f7c954905f682c75b.zip
thread: add uv_thread_getcpu() (#3803)
Add uv_thread_getcpu() api to get the cpu number on which the calling thread is running.
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)