Flush (work in progress)
[mono.git] / mono / io-layer / events.c
index c5a7d611d207036479dcababe37855f4accfc921..b55e8e75fbcd8ac88038640532b80587cdf4bc9e 100644 (file)
@@ -34,6 +34,8 @@ struct _WapiHandleOps _wapi_event_ops = {
        event_signal,           /* signal */
        event_own,              /* own */
        NULL,                   /* is_owned */
+       NULL,                   /* special_wait */
+       NULL                    /* prewait */
 };
 
 struct _WapiHandleOps _wapi_namedevent_ops = {
@@ -94,7 +96,7 @@ static void event_ops_init (void)
 
 static void event_signal(gpointer handle)
 {
-       ResetEvent(handle);
+       SetEvent(handle);
 }
 
 static gboolean event_own (gpointer handle)
@@ -127,7 +129,7 @@ static gboolean event_own (gpointer handle)
 
 static void namedevent_signal (gpointer handle)
 {
-       ResetEvent (handle);
+       SetEvent (handle);
 }
 
 /* NB, always called with the shared handle lock held */