From 4c63f554a6007aa7a2d9ed686f5bc265a3ed1436 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 12 Aug 2011 02:34:49 +0200 Subject: [PATCH] Windows: much better pipe_pound_1000 results --- src/win/pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win/pipe.c b/src/win/pipe.c index 158be9c1..589a8036 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -367,6 +367,8 @@ static DWORD WINAPI pipe_connect_thread_proc(void* parameter) { if (pipeHandle != INVALID_HANDLE_VALUE) { break; } + + SwitchToThread(); } if (pipeHandle != INVALID_HANDLE_VALUE && !uv_set_pipe_handle(handle, pipeHandle)) {