1#ifndef STARDEW_THREAD_H
2#define STARDEW_THREAD_H
11#define DECLARE_THREAD_PROC(name, argName) DWORD name (void* argName)
27typedef void*(*ThreadFn)(
void*);
31#define DECLARE_THREAD_PROC(name, argName) void* name (void* argName)
void UnlockMutex(CrossPlatformMutex *pMtx)
Definition Thread.c:90
pthread_mutex_t CrossPlatformMutex
Mutexes - These will work between threads in the same process: in windows terms, a "critical section"...
Definition Thread.h:34
pid_t CrossPlatformThreadID
Definition Thread.h:36
CrossPlatformThreadID GetThisThreadsID()
Definition Thread.c:95
void JoinThread(CrossPlatformThread pThread)
Definition Thread.c:66
void InitMutex(CrossPlatformMutex *pMtx)
Definition Thread.c:72
void *(* ThreadFn)(void *)
Thread functions have return values as required by the OS thread libs but as the win32 thead returns ...
Definition Thread.h:27
void LockMutex(CrossPlatformMutex *pMtx)
Definition Thread.c:85
pthread_t CrossPlatformThread
Definition Thread.h:29
CrossPlatformThread StartThread(ThreadFn thread, void *pUser)
Thread functions have return values as required by the OS thread libs but as the win32 thead returns ...
Definition Thread.c:59
void DestroyMutex(CrossPlatformMutex *pMtx)
Definition Thread.c:80