ReactOS 0.4.15-dev-6073-g59e7458
queuetest.c File Reference
#include <windows.h>
#include <stdio.h>
Include dependency graph for queuetest.c:

Go to the source code of this file.

Macros

#define WT_EXECUTEINPERSISTENTIOTHREAD   0x00000040
 
#define TestProc(n)
 

Functions

BOOL WINAPI QueueUserWorkItem (LPTHREAD_START_ROUTINE, PVOID, ULONG)
 
 TestProc (1)
 

Macro Definition Documentation

◆ TestProc

#define TestProc (   n)
Value:
{\
printf("TestProc%d thread 0x%lx context 0x%p\n", n, GetCurrentThreadId(), ctx);\
return 0;\
}
#define CALLBACK
Definition: compat.h:35
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble n
Definition: glext.h:7729
#define TestProc(n)
Definition: queuetest.c:15
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459

Definition at line 15 of file queuetest.c.

◆ WT_EXECUTEINPERSISTENTIOTHREAD

#define WT_EXECUTEINPERSISTENTIOTHREAD   0x00000040

Definition at line 12 of file queuetest.c.

Function Documentation

◆ QueueUserWorkItem()

BOOL WINAPI QueueUserWorkItem ( LPTHREAD_START_ROUTINE  ,
PVOID  ,
ULONG   
)

Referenced by TestProc().

◆ TestProc()

TestProc ( )

Definition at line 22 of file queuetest.c.

31{
32 PVOID x = (PVOID)0x12345;
33 QueueUserWorkItem(TestProc1, x, 0);
40 return 0;
41}
#define INFINITE
Definition: serial.h:102
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE, PVOID, ULONG)
#define WT_EXECUTEINPERSISTENTIOTHREAD
Definition: queuetest.c:12
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition: synch.c:790
void * PVOID
Definition: typedefs.h:50
#define WT_EXECUTEINPERSISTENTTHREAD
Definition: winnt_old.h:1080
#define WT_EXECUTEINIOTHREAD
Definition: winnt_old.h:1073
#define WT_EXECUTELONGFUNCTION
Definition: winnt_old.h:1077