ReactOS 0.4.16-dev-927-g467dec4
threaddll.c File Reference
#include <windows.h>
#include "threaddll.h"
Include dependency graph for threaddll.c:

Go to the source code of this file.

Functions

void CDECL _endthread (void)
 
void CDECL _endthreadex (unsigned int)
 
void WINAPI set_detach_event (HANDLE event)
 
static unsigned internal_thread_proc (void *param)
 
unsigned WINAPI stdcall_thread_proc (void *param)
 
void CDECL cdecl_thread_proc (void *param)
 
BOOL WINAPI DllMain (HINSTANCE instance_new, DWORD reason, LPVOID reserved)
 

Variables

static HANDLE detach_event
 

Function Documentation

◆ _endthread()

void CDECL _endthread ( void  )

Definition at line 95 of file thread.c.

96{
97 TRACE("(void)\n");
98
99 /* FIXME */
100 ExitThread(0);
101}
VOID WINAPI ExitThread(IN DWORD uExitCode)
Definition: thread.c:365
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by DefragThread(), init(), internal_thread_proc(), processRequest(), test_thread_func(), and test_thread_func_ex().

◆ _endthreadex()

void CDECL _endthreadex ( unsigned int  return_code)

Definition at line 276 of file thread.cpp.

277{
278 return common_end_thread(return_code);
279}
static void __cdecl common_end_thread(unsigned int const return_code)
Definition: thread.cpp:237

Referenced by ActionThread(), internal_thread_proc(), test_thread_func(), and thread_start().

◆ cdecl_thread_proc()

void CDECL cdecl_thread_proc ( void param)

Definition at line 56 of file threaddll.c.

57{
59}
GLfloat param
Definition: glext.h:5796
static unsigned internal_thread_proc(void *param)
Definition: threaddll.c:37

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  instance_new,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 61 of file threaddll.c.

62{
63 switch (reason)
64 {
67 break;
68 }
69
70 return TRUE;
71}
#define TRUE
Definition: types.h:120
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
Definition: synch.c:733
static HANDLE detach_event
Definition: threaddll.c:27

◆ internal_thread_proc()

static unsigned internal_thread_proc ( void param)
static

Definition at line 37 of file threaddll.c.

38{
39 struct threaddll_args *args = param;
40 SetEvent(args->confirm_running);
42
43 if (args->exit_method == thread_exit_endthread)
44 _endthread();
45 else if (args->exit_method == thread_exit_endthreadex)
46 _endthreadex(0);
47
48 return 0;
49}
#define INFINITE
Definition: serial.h:102
Definition: match.c:390
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
void CDECL _endthread(void)
Definition: thread.c:95
void CDECL _endthreadex(unsigned int)
Definition: thread.cpp:276
@ thread_exit_endthreadex
Definition: threaddll.h:22
@ thread_exit_endthread
Definition: threaddll.h:21

Referenced by cdecl_thread_proc(), and stdcall_thread_proc().

◆ set_detach_event()

void WINAPI set_detach_event ( HANDLE  event)

Definition at line 32 of file threaddll.c.

33{
35}
struct _cl_event * event
Definition: glext.h:7739

◆ stdcall_thread_proc()

unsigned WINAPI stdcall_thread_proc ( void param)

Definition at line 51 of file threaddll.c.

52{
54}

Variable Documentation

◆ detach_event