aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Posix/Thread.h
blob: 69c6c0f60f8c67e885e4807ded206a18419c18fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef BH_PLATFORM_POSIX_THREAD_H
#define BH_PLATFORM_POSIX_THREAD_H


#include <pthread.h>
#include <semaphore.h>


struct BH_Condition
{
    pthread_cond_t handle;
};


struct BH_Mutex
{
    pthread_mutex_t handle;
};


struct BH_Semaphore
{
    sem_t handle;
};


struct BH_Thread
{
    pthread_t handle;
};


void BH_TssCleanup(void);

#endif /* BH_PLATFORM_POSIX_THREAD_H */