[w32event] Use coop handles for System.Threading.NativeEventCalls.CreateEvent_internal
authorAleksey Kliger <aleksey@xamarin.com>
Thu, 25 May 2017 22:21:31 +0000 (18:21 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Fri, 26 May 2017 18:26:18 +0000 (14:26 -0400)
commit0a3a12b9aac30a49366cd1ae90223be49b325711
treeb3187bc2c44456c743396a11bdaa2549d18d6bea
parent93e74ce434652d0d52d77be602d39bd224605b8f
[w32event] Use coop handles for System.Threading.NativeEventCalls.CreateEvent_internal

- Make a new mono_w32event_create_full on unix
- Convert the MonoString to utf8 (unix) or utf16 (win32) in the icall, then
  call an implementation func.
- transition to GC safe mode around the win32 api call on Windows
mono/metadata/icall-def.h
mono/metadata/w32event-unix.c
mono/metadata/w32event-win32.c
mono/metadata/w32event.h