summaryrefslogtreecommitdiffstats
path: root/source/base/base_thread.h
blob: 11e83db7c6685e470584a8f5cebaa7d71c166fad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef BASE_THREAD_H
#define BASE_THREAD_H


// platform agnostic thread buffer
typedef struct Thread Thread;
struct Thread {
#if PLATFORM_LINUX
 pthread_t id;
#endif
 u64 data[2];
 s32 input;
 s32 result;
};


typedef struct ThreadPool ThreadPool;
struct ThreadPool {
 Thread *threads;
 u64     count;
};


#endif // BASE_THREAD_H