diff options
author | daomingq <daoming.qiu@intel.com> | 2022-11-16 01:01:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 18:01:29 +0100 |
commit | 64669fdd8de8fce478e6ce1f7c954905f682c75b (patch) | |
tree | 91f0a2a9d9e3a0fa31463cb2802e36850774d203 /docs/src | |
parent | e14158605336d2852dc5489204d2eb7fbe38a97d (diff) | |
download | libuv-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.rst | 9 |
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) |