![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
Functions | |
int __stdcall | winx_create_thread (PTHREAD_START_ROUTINE start_addr, PVOID parameter, HANDLE *phandle) |
Creates a thread and starts them. | |
void __stdcall | winx_exit_thread (void) |
Terminates the current thread. |
int __stdcall winx_create_thread | ( | PTHREAD_START_ROUTINE | start_addr, | |
PVOID | parameter, | |||
HANDLE * | phandle | |||
) |
Creates a thread and starts them.
[in] | start_addr | the starting address of the thread. |
[in] | parameter | pointer to data passed to thread routine. |
[out] | phandle | the thread handle pointer. May be NULL. |
DWORD WINAPI thread_proc(LPVOID parameter) { // do something winx_exit_thread(); return 0; } winx_create_thread(thread_proc,NULL);