From 61f537c0bc9ff6b73fc7e837e08a5c7867f16832 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sat, 20 Feb 2021 14:24:43 -0500 Subject: Multithreading requests on the backend, and removing unnecessary files --- backend/Header.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 backend/Header.h (limited to 'backend/Header.h') 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 + +#else +// TODO: Support Linux threads +#include +#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 -- cgit v1.2.1