]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_win32wrapper.cpp
Experimental WSAPoll (thanks for not just using poll(), guys) support for Windows...
[user/henk/code/inspircd.git] / win / inspircd_win32wrapper.cpp
index 7e72220e858d6bcebeb204cd94f7f83eddccda0f..0b738d538a1bde7e3e63f52ef5a3b74c32e6ea52 100644 (file)
@@ -776,3 +776,12 @@ int getcpu()
        pclsObj->Release();
        return -1;
 }
+
+void usleep(unsigned long usecs)
+{
+       if (usecs > 0UL)
+       {
+               unsigned long millis = ((usecs + 999UL) / 1000UL);
+               SleepEx(millis, false);
+       }
+}