grammar updates
[mono.git] / mono / io-layer / events.c
index 0aee6ff5e59cdf2fbd79c19d60b3d7efc313246b..60dfea7299e894ed5dd64c7524b9fbccb5e1d0f5 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * events.c:  Event handles
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #include <config.h>
 #include <glib.h>
 #include <pthread.h>
@@ -5,7 +14,6 @@
 
 #include <mono/io-layer/wapi.h>
 #include <mono/io-layer/wapi-private.h>
-#include <mono/io-layer/wait-private.h>
 #include <mono/io-layer/handles-private.h>
 #include <mono/io-layer/misc-private.h>
 
@@ -27,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)
 {
@@ -108,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) {