Cross-platform threading, sockets updates, and control stream implementation, and various other fixes
This commit is contained in:
parent
f02e916f6c
commit
103c052729
11 changed files with 443 additions and 8 deletions
18
limelight-common/PlatformThreads.h
Normal file
18
limelight-common/PlatformThreads.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "Platform.h"
|
||||
|
||||
typedef void (*ThreadEntry)(void *context);
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef HANDLE PLT_THREAD;
|
||||
typedef HANDLE PLT_MUTEX;
|
||||
#else
|
||||
#endif
|
||||
|
||||
int PltCreateMutex(PLT_MUTEX *mutex);
|
||||
void PltDeleteMutex(PLT_MUTEX *mutex);
|
||||
void PltLockMutex(PLT_MUTEX *mutex);
|
||||
void PltUnlockMutex(PLT_MUTEX *mutex);
|
||||
|
||||
int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD *thread);
|
||||
void PltCloseThread(PLT_THREAD thread);
|
||||
void PltJoinThread(PLT_THREAD thread);
|
||||
Loading…
Add table
Add a link
Reference in a new issue