diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-13 16:18:54 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-13 16:18:54 +0200 |
commit | dd1b9477063e39c5d916ebb602947340442d4d50 (patch) | |
tree | 01cc3cc477c26c8d529f7fd7db67aa8fcaccb974 /deps/uv/src/uv-common.c | |
parent | 2c97da82f5e23beb3f78258bb1340e63895e5125 (diff) | |
download | android-node-v8-dd1b9477063e39c5d916ebb602947340442d4d50.tar.gz android-node-v8-dd1b9477063e39c5d916ebb602947340442d4d50.tar.bz2 android-node-v8-dd1b9477063e39c5d916ebb602947340442d4d50.zip |
deps: upgrade libuv to 1f9bd99
Diffstat (limited to 'deps/uv/src/uv-common.c')
-rw-r--r-- | deps/uv/src/uv-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/uv/src/uv-common.c b/deps/uv/src/uv-common.c index 75dfcd89c2..dd91dbb28d 100644 --- a/deps/uv/src/uv-common.c +++ b/deps/uv/src/uv-common.c @@ -314,6 +314,15 @@ int uv_thread_create(uv_thread_t *tid, void (*entry)(void *arg), void *arg) { } +unsigned long uv_thread_self(void) { +#ifdef _WIN32 + return (unsigned long) GetCurrentThreadId(); +#else + return (unsigned long) pthread_self(); +#endif +} + + void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg) { ngx_queue_t* q; uv_handle_t* h; |