From 85a787b92b6de419fab2cd4fe118c0c7d47066d6 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 23 Mar 2009 18:48:58 +0000 Subject: usleep() is no longer needed, and should not be needed in the future git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11252 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/inspircd_win32wrapper.cpp | 9 --------- win/inspircd_win32wrapper.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index ed60a4028..f42fa6479 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -684,12 +684,3 @@ int getcpu() return cpu; } - -void usleep(unsigned long usecs) -{ - if (usecs > 0UL) - { - unsigned long millis = ((usecs + 999UL) / 1000UL); - SleepEx(millis, false); - } -} diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index efef18ac8..fc9905403 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -225,8 +225,5 @@ CoreExport bool initwmi(); CoreExport void donewmi(); CoreExport int getcpu(); -CoreExport void usleep(unsigned long usecs); - - #endif -- cgit v1.2.3