#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>
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)
{
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) {