summaryrefslogtreecommitdiff
path: root/backend/Header.h
blob: 5282066e2c01b277eaa7756768cd81b1af41b5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#ifdef WIN32

#include <Windows.h>

#else
// TODO: Support Linux threads
#include <pthread.h>
#endif

struct ThreadInstance {
	DWORD	mThreadId;
	HANDLE	mThreadHandle;
};

bool initThreadInstance(ThreadInstance* instance) {
	instance->mThreadHandle = CreateThread(NULL, 0,, NULL, 0, NULL);
}

struct ThreadPool {
	
};