grammar updates
[mono.git] / mono / io-layer / events.c
index 8168045100d3380da43ecaf51154d42b0da15073..60dfea7299e894ed5dd64c7524b9fbccb5e1d0f5 100644 (file)
@@ -35,7 +35,7 @@ struct _WapiHandleOps _wapi_event_ops = {
        NULL,                   /* is_owned */
 };
 
-static pthread_once_t event_ops_once=PTHREAD_ONCE_INIT;
+static mono_once_t event_ops_once=MONO_ONCE_INIT;
 
 static void event_ops_init (void)
 {
@@ -116,7 +116,7 @@ gpointer CreateEvent(WapiSecurityAttributes *security G_GNUC_UNUSED, gboolean ma
        gpointer handle;
        gboolean ok;
        
-       pthread_once (&event_ops_once, event_ops_init);
+       mono_once (&event_ops_once, event_ops_init);
 
        handle=_wapi_handle_new (WAPI_HANDLE_EVENT);
        if(handle==_WAPI_HANDLE_INVALID) {