Fix event, semaphore, mutex create/open to request the maximum allowe… (dotnet/corecl...
authorKoundinya Veluri <kouvel@microsoft.com>
Wed, 21 Jun 2017 18:07:01 +0000 (11:07 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2017 18:07:01 +0000 (11:07 -0700)
commit0531126cf164493a2e4c658e417d29144470c5e2
tree709d358ab4abfb4a90d40030eb19a9d50a9cfc8d
parent75df86b221c122d3bc630a005ebde7ec0989e086
Fix event, semaphore, mutex create/open to request the maximum allowe… (dotnet/coreclr#12381)

Fix event, semaphore, mutex create/open to request the maximum allowed access

Functional fix for dotnet/coreclr#11306
- Ported dotnet/corert@dotnet/coreclr@78fae17f5434839a8720603973ff53f27e27f916 to CoreCLR, see that commit for details on the hang during mutex creation that is also fixed by this change.
- Replaced all uses of the *_ALL_ACCESS flags relevant to events, semaphores, and mutexes

Commit migrated from https://github.com/dotnet/coreclr/commit/ccd8dd1308c90b7495f182f5a7e121d25aa5e27b
12 files changed:
src/coreclr/src/debug/ee/debugger.cpp
src/coreclr/src/dlls/mscordac/mscordac_unixexports.src
src/coreclr/src/dlls/mscoree/mscorwks_unixexports.src
src/coreclr/src/inc/winwrap.h
src/coreclr/src/mscorlib/src/Microsoft/Win32/Win32Native.cs
src/coreclr/src/mscorlib/src/System/Threading/EventWaitHandle.cs
src/coreclr/src/mscorlib/src/System/Threading/Mutex.cs
src/coreclr/src/mscorlib/src/System/Threading/Semaphore.cs
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/src/synchobj/event.cpp
src/coreclr/src/pal/src/synchobj/mutex.cpp
src/coreclr/src/pal/src/synchobj/semaphore.cpp