diff options
| author | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-20 14:24:43 -0500 |
|---|---|---|
| committer | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-20 14:24:43 -0500 |
| commit | 61f537c0bc9ff6b73fc7e837e08a5c7867f16832 (patch) | |
| tree | 10f78a9b684deab67bd133bd7b28c015db40b60c /backend/Header.h | |
| parent | 5c409f04470e319f0a57e8791bc96cd724ee601c (diff) | |
Multithreading requests on the backend, and removing unnecessary files
Diffstat (limited to 'backend/Header.h')
| -rw-r--r-- | backend/Header.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/backend/Header.h b/backend/Header.h new file mode 100644 index 0000000..5282066 --- /dev/null +++ b/backend/Header.h @@ -0,0 +1,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 { + +};
\ No newline at end of file |
