Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: implement uv_thread_self()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Dec 29, 2011
1 parent 85f6b79 commit 0db56ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/win/thread.c
Expand Up @@ -113,6 +113,11 @@ int uv_thread_join(uv_thread_t *tid) {
}


uv_thread_t uv_thread_self(void) {
return GetCurrentThreadId();
}


int uv_mutex_init(uv_mutex_t* mutex) {
InitializeCriticalSection(mutex);
return 0;
Expand Down

0 comments on commit 0db56ea

Please sign in to comment.