
#include <process.h>#include <windows.h>#include <winsock.h>#include "vipl_win_thread.h"Go to the source code of this file.
Data Structures | |
| struct | thread_t |
Typedefs | |
| typedef thread_t | thread_t |
Functions | |
| void | vipl_win_init (void) |
| unsigned __stdcall | vipl_win_thread_create_helper (void *p) |
| int | vipl_win_thread_create (vipl_win_thread_t *thread, void *(*start_routine)(void *), void *arg) |
| int | vipl_win_thread_join (vipl_win_thread_t t, void **thread_return) |
| void | vipl_win_thread_exit (void *retval) |
| VIP_ENTRY_POINT unsigned long | vipl_win_thread_self (void) |
Definition in file vipl_win_thread.c.
|
|
This structure describes a native thread in the Windows port. |
|
|
This function, declared in vipl_win_init.cpp, is a trick to allow static initialization of mutexes in the Windows port. It declares a constructor and a destructor methods to catch the first usage of the mutexes.
Referenced by vipl_win_thread_create(). |
|
|
This function executes the thread routine in the context of the thread (Windows port).
Definition at line 53 of file vipl_win_thread.c. References thread_t::arg, and thread_t::start_routine. Referenced by vipl_win_thread_create(). |
|
||||||||||||||||
|
This function create a new thread (Windows port).
Definition at line 80 of file vipl_win_thread.c. References threadinfo_t::arg, threadinfo_t::start_routine, vipl_win_thread_t::thread, vipl_win_thread_t::ti, vipl_win_init(), and vipl_win_thread_create_helper(). |
|
||||||||||||
|
This function waits for another thread to exit (Windows port).
Definition at line 114 of file vipl_win_thread.c. References vipl_win_thread_t::thread, and vipl_win_thread_t::ti. |
|
|
This function terminates the current thread (Windows port).
Definition at line 135 of file vipl_win_thread.c. |
|
|
This function returns the ID of the current thread (Windows port).
Definition at line 153 of file vipl_win_thread.c. |
1.4.4.