#include "wine/test.h"
#include "winbase.h"
#include "winternl.h"
#include "winuser.h"
Go to the source code of this file.
◆ TICKSPERSEC
◆ adjust_system_time()
| static BOOL adjust_system_time |
( |
int |
sec | ) |
|
|
static |
Definition at line 56 of file timer.c.
57{
61
71}
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI SetSystemTime(IN CONST SYSTEMTIME *lpSystemTime)
struct _ULARGE_INTEGER::@4457 u
Referenced by test_timeouts().
◆ START_TEST()
Definition at line 239 of file timer.c.
240{
243}
static void test_timer(void)
static void test_timeouts(void)
◆ test_timeouts()
Definition at line 206 of file timer.c.
207{
210
212 {
214 return;
215 }
216
217
227
230
232 {
235 }
237}
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static HANDLE ULONG_PTR DWORD threads
static DWORD WINAPI thread_SleepEx(void *arg)
static DWORD WINAPI thread_WaitableTimer_period(void *arg)
static BOOL adjust_system_time(int sec)
static DWORD WINAPI thread_WaitableTimer_rel(void *arg)
static DWORD WINAPI thread_Sleep(void *arg)
static DWORD WINAPI thread_SetTimer(void *arg)
static DWORD WINAPI thread_WaitableTimer_abs(void *arg)
static DWORD WINAPI thread_WaitForSingleObject(void *arg)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ test_timer()
Definition at line 27 of file timer.c.
28{
32
33
35 ok(
handle !=
NULL,
"failed to create waitable timer with no name\n" );
36
39 ok(
r,
"failed to set timer\n");
40
42
43
45 ok(
handle !=
NULL,
"failed to create waitable timer with no name\n" );
46
49 ok(
r,
"failed to set timer\n");
50
52}
GLdouble GLdouble GLdouble r
HANDLE WINAPI CreateWaitableTimerA(IN LPSECURITY_ATTRIBUTES lpTimerAttributes OPTIONAL, IN BOOL bManualReset, IN LPCSTR lpTimerName OPTIONAL)
BOOL WINAPI SetWaitableTimer(IN HANDLE hTimer, IN const LARGE_INTEGER *pDueTime, IN LONG lPeriod, IN PTIMERAPCROUTINE pfnCompletionRoutine OPTIONAL, IN OPTIONAL LPVOID lpArgToCompletionRoutine, IN BOOL fResume)
Referenced by START_TEST().
◆ thread_SetTimer()
Definition at line 185 of file timer.c.
186{
190
193
195 {
198 }
199
201 ok(
t > 2000,
"t = %ld\n",
t);
203 return 0;
204}
ULONG WINAPI DECLSPEC_HOTPATCH GetTickCount(void)
unsigned __int3264 UINT_PTR
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
Referenced by test_timeouts().
◆ thread_Sleep()
◆ thread_SleepEx()
Definition at line 99 of file timer.c.
100{
102
105 ok(
t > 2000,
"t = %ld\n",
t);
106 return 0;
107}
DWORD WINAPI SleepEx(IN DWORD dwMilliseconds, IN BOOL bAlertable)
Referenced by test_timeouts().
◆ thread_WaitableTimer_abs()
Definition at line 132 of file timer.c.
133{
138
143
145 ok(timer !=
NULL,
"CreateWaitableTimer failed\n");
146
149 ok(
r,
"SetWaitableTimer failed\n");
150
155 ok(
t < 2000,
"t = %ld\n",
t);
156 return 0;
157}
struct _LARGE_INTEGER::@2502 u
Referenced by test_timeouts().
◆ thread_WaitableTimer_period()
Definition at line 159 of file timer.c.
160{
164
166
168 ok(timer !=
NULL,
"CreateWaitableTimer failed\n");
169
172 ok(
r,
"SetWaitableTimer failed\n");
173
176
181 ok(
t > 2000,
"t = %ld\n",
t);
182 return 0;
183}
Referenced by test_timeouts().
◆ thread_WaitableTimer_rel()
Definition at line 109 of file timer.c.
110{
114
116
118 ok(timer !=
NULL,
"CreateWaitableTimer failed\n");
119
122 ok(
r,
"SetWaitableTimer failed\n");
123
128 ok(
t > 2000,
"t = %ld\n",
t);
129 return 0;
130}
Referenced by test_timeouts().
◆ thread_WaitForSingleObject()
Definition at line 73 of file timer.c.
74{
77
85 ok(
t > 2000,
"t = %ld\n",
t);
86 return 0;
87}
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Referenced by test_timeouts().