Plasma Engine  2.0
Loading...
Searching...
No Matches
ThreadingDeclarations_posix.h
1#pragma once
2
3// Deactivate Doxygen document generation for the following block.
5
6#include <pthread.h>
7#include <semaphore.h>
8
9using plThreadHandle = pthread_t;
10using plThreadID = pthread_t;
11using plMutexHandle = pthread_mutex_t;
12using plOSThreadEntryPoint = void* (*)(void* pThreadParameter);
13
14struct plSemaphoreHandle
15{
16 sem_t* m_pNamedOrUnnamed = nullptr;
17 sem_t* m_pNamed = nullptr;
18 sem_t m_Unnamed;
19};
20
21#define PL_THREAD_CLASS_ENTRY_POINT void* plThreadClassEntryPoint(void* pThreadParameter);
22
23struct plConditionVariableData
24{
25 pthread_cond_t m_ConditionVariable;
26};
27
28