mono_native_tls_get_value that does not change LastError. (#15568)
[mono-project.git] / mono / utils / mono-os-wait.h
blob3d321d17f07ba672be5fb56161a9d3afaf8f77c0
1 /**
2 * \file
3 */
5 #ifndef _MONO_UTILS_OS_WAIT_H_
6 #define _MONO_UTILS_OS_WAIT_H_
8 #include <config.h>
9 #ifdef HOST_WIN32
11 #include <winsock2.h>
12 #include <windows.h>
13 #include "mono-error.h"
15 DWORD
16 mono_win32_sleep_ex (DWORD timeout, BOOL alertable);
18 DWORD
19 mono_coop_win32_sleep_ex (DWORD timeout, BOOL alertable);
21 DWORD
22 mono_win32_wait_for_single_object_ex (HANDLE handle, DWORD timeout, BOOL alertable);
24 DWORD
25 mono_coop_win32_wait_for_single_object_ex (HANDLE handle, DWORD timeout, BOOL alertable);
27 DWORD
28 mono_win32_wait_for_multiple_objects_ex (DWORD count, CONST HANDLE *handles, BOOL waitAll, DWORD timeout, BOOL alertable, MonoError *error);
30 DWORD
31 mono_coop_win32_wait_for_multiple_objects_ex (DWORD count, CONST HANDLE *handles, BOOL waitAll, DWORD timeout, BOOL alertable, MonoError *error);
33 DWORD
34 mono_win32_signal_object_and_wait (HANDLE toSignal, HANDLE toWait, DWORD timeout, BOOL alertable);
36 DWORD
37 mono_coop_win32_signal_object_and_wait (HANDLE toSignal, HANDLE toWait, DWORD timeout, BOOL alertable);
39 DWORD
40 mono_win32_msg_wait_for_multiple_objects_ex (DWORD count, CONST HANDLE *handles, DWORD timeout, DWORD wakeMask, DWORD flags);
42 DWORD
43 mono_coop_win32_msg_wait_for_multiple_objects_ex (DWORD count, CONST HANDLE *handles, DWORD timeout, DWORD wakeMask, DWORD flags);
45 DWORD
46 mono_win32_wsa_wait_for_multiple_events (DWORD count, const WSAEVENT FAR *handles, BOOL waitAll, DWORD timeout, BOOL alertable);
48 DWORD
49 mono_coop_win32_wsa_wait_for_multiple_events (DWORD count, const WSAEVENT FAR *handles, BOOL waitAll, DWORD timeout, BOOL alertable);
51 #endif
53 #endif /* _MONO_UTILS_OS_WAIT_H_ */