This repository was archived by the owner on Apr 3, 2019. It is now read-only.
File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1114,6 +1114,7 @@ static DWORD WINAPI uv_pipe_zero_readfile_thread_proc(void* parameter) {
1114
1114
assert (handle -> type == UV_NAMED_PIPE );
1115
1115
1116
1116
if (handle -> flags & UV_HANDLE_PIPE_READ_CANCELABLE ) {
1117
+ uv_mutex_lock (m ); /* mutex controls *setting* of readfile_thread */
1117
1118
if (DuplicateHandle (GetCurrentProcess (), GetCurrentThread (),
1118
1119
GetCurrentProcess (), & hThread ,
1119
1120
0 , TRUE, DUPLICATE_SAME_ACCESS )) {
@@ -1247,13 +1248,9 @@ static void uv_pipe_queue_read(uv_loop_t* loop, uv_pipe_t* handle) {
1247
1248
req = & handle -> read_req ;
1248
1249
1249
1250
if (handle -> flags & UV_HANDLE_NON_OVERLAPPED_PIPE ) {
1250
- if (handle -> flags & UV_HANDLE_PIPE_READ_CANCELABLE )
1251
- uv_mutex_lock (& handle -> pipe .conn .readfile_mutex ); /* mutex controls *setting* of readfile_thread */
1252
1251
if (!QueueUserWorkItem (& uv_pipe_zero_readfile_thread_proc ,
1253
1252
req ,
1254
1253
WT_EXECUTELONGFUNCTION )) {
1255
- if (handle -> flags & UV_HANDLE_PIPE_READ_CANCELABLE )
1256
- uv_mutex_unlock (& handle -> pipe .conn .readfile_mutex );
1257
1254
/* Make this req pending reporting an error. */
1258
1255
SET_REQ_ERROR (req , GetLastError ());
1259
1256
goto error ;
You can’t perform that action at this time.
0 commit comments