ReactOS  0.4.15-dev-1397-g19779b3
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
GLdouble n
Definition: glext.h:7729
DWORD WINAPI GetCurrentThreadId(VOID)
Definition: thread.c:458
#define TestProc(n)
Definition: queuetest.c:15
unsigned long DWORD
Definition: ntddk_ex.h:95

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);
39  Sleep(INFINITE);
40  return 0;
41 }
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition: synch.c:790
#define WT_EXECUTEINIOTHREAD
Definition: winnt_old.h:1072
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define WT_EXECUTEINPERSISTENTTHREAD
Definition: winnt_old.h:1079
BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE, PVOID, ULONG)
void * PVOID
Definition: retypes.h:9
#define WT_EXECUTELONGFUNCTION
Definition: winnt_old.h:1076
#define WT_EXECUTEINPERSISTENTIOTHREAD
Definition: queuetest.c:12
#define INFINITE
Definition: serial.h:102