#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
Go to the source code of this file.
|
| typedef void *(* | ThreadFn) (void *) |
| | Thread functions have return values as required by the OS thread libs but as the win32 thead returns a dword (32bit) and the pthread returns a void* (64 bit), so our abstraction just ignores return values.
|
| |
| typedef pthread_t | CrossPlatformThread |
| |
| typedef pthread_mutex_t | CrossPlatformMutex |
| | Mutexes - These will work between threads in the same process: in windows terms, a "critical section".
|
| |
| typedef pid_t | CrossPlatformThreadID |
| |
◆ _GNU_SOURCE
◆ DECLARE_THREAD_PROC
| #define DECLARE_THREAD_PROC |
( |
|
name, |
|
|
|
argName |
|
) |
| void* name (void* argName) |
◆ CrossPlatformMutex
Mutexes - These will work between threads in the same process: in windows terms, a "critical section".
◆ CrossPlatformThread
◆ CrossPlatformThreadID
◆ ThreadFn
| typedef void *(* ThreadFn) (void *) |
Thread functions have return values as required by the OS thread libs but as the win32 thead returns a dword (32bit) and the pthread returns a void* (64 bit), so our abstraction just ignores return values.
◆ DestroyMutex()
◆ GetThisThreadsID()
◆ InitMutex()
◆ JoinThread()
◆ LockMutex()
◆ StartThread()
Thread functions have return values as required by the OS thread libs but as the win32 thead returns a dword (32bit) and the pthread returns a void* (64 bit), so our abstraction just ignores return values.
- Parameters
-
- Returns
◆ UnlockMutex()