[w32handle] Fix race condition when creating named mutex/event/semaphore (#3560)
authorLudovic Henry <ludovic@xamarin.com>
Wed, 14 Sep 2016 21:18:50 +0000 (23:18 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Sep 2016 21:18:50 +0000 (23:18 +0200)
commit7eb2ea64762a1eb8b08f3ed8d2eef1e772bdf445
tree20364b4385e6457e163bb1cebd3e1942c88465b2
parent9006b7ac98b2c13df0525be65cb7022c5d3d9383
[w32handle] Fix race condition when creating named mutex/event/semaphore (#3560)

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41914
mono/metadata/w32event-unix.c
mono/metadata/w32handle-namespace.c
mono/metadata/w32mutex-unix.c
mono/metadata/w32semaphore-unix.c
mono/tests/Makefile.am
mono/tests/namedmutex-destroy-race.cs [new file with mode: 0644]
mono/utils/w32handle.c