summaryrefslogtreecommitdiff
path: root/source/api_wrappers/windows/WinApiWrappers.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/api_wrappers/windows/WinApiWrappers.h')
-rw-r--r--source/api_wrappers/windows/WinApiWrappers.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/source/api_wrappers/windows/WinApiWrappers.h b/source/api_wrappers/windows/WinApiWrappers.h
index f3fbfa1..2d5a7ed 100644
--- a/source/api_wrappers/windows/WinApiWrappers.h
+++ b/source/api_wrappers/windows/WinApiWrappers.h
@@ -22,6 +22,11 @@
#include <process.h>
#include <assert.h>
#include <vector>
+#ifdef __MINGW32__
+#include "String_s.h"
+#include <stdlib.h>
+#endif
+
using namespace std;
class CWaitableObject
@@ -95,20 +100,6 @@ public:
DWORD Wait(DWORD milliseconds = INFINITE) {
return ::WaitForSingleObject(m_Handle, milliseconds);
}
- void WaitForAllEvents(HANDLE *pHandles, int iHandles, DWORD msec = INFINITE) {
- ::WaitForMultipleObjects(
- iHandles, // Number of objects in handles
- pHandles,
- TRUE, // Wait all events
- msec);
- } // Wait indefinitely default i.e. INFINITE
- int WaitForFirstEvent(HANDLE *pHandles, int iHandles, DWORD msec = INFINITE) {
- ::WaitForMultipleObjects(
- iHandles, // Number of objects in handles
- pHandles,
- FALSE, // Wait for first event object
- msec);
- } // Wait indefinitely default i.e. INFINITE
HANDLE GetHandle() {
return m_Handle;
}