diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2014-11-10 15:57:28 +0100 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2014-11-10 20:03:01 -0300 |
commit | 6591d000d13714c9e362942fbeaeca2b29507a25 (patch) | |
tree | 5984e35f66636e4e73a44209336d6df7c4c08ab3 /docs/src | |
parent | 0f25560c8aed4fb9f40120750d0832ac415ce092 (diff) | |
download | libuv-6591d000d13714c9e362942fbeaeca2b29507a25.tar.gz libuv-6591d000d13714c9e362942fbeaeca2b29507a25.zip |
win: fix uv_thread_self()
59658a8de7cc05a58327a164fd2ed4b050f8b4f4 changed uv_thread_self()
to return uv_thread_t, but uv_thread_t is a thread's HANDLE while
uv_thread_self() returns the current thread's id.
This means that uv_thread_equal() is also broken, as we are
potentially comparing HANDLES to ids.
Changed uv_thread_self() to return the current thread's creation handle.
Fixed small doc issue.
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/threading.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/threading.rst b/docs/src/threading.rst index 0d6c0df1..aab13f84 100644 --- a/docs/src/threading.rst +++ b/docs/src/threading.rst @@ -56,7 +56,7 @@ Threads ^^^^^^^ .. c:function:: int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg) -.. c:function:: unsigned long uv_thread_self(void) +.. 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) |