Windows threading fixes

Further cripple Deci2Listener pending Windows implementation, finish converting POSIX threads to std::thread. Hardcoded pathing in overlord\fake_iso.cpp until environment variables can be implemented for Windows.

Currently loads KERNEL.CGO and links gcommon object file, but crashes when executing due to Windows/Linux differences.
This commit is contained in:
doctaweed
2020-08-28 11:59:20 -06:00
parent 92976234a1
commit 2138beb150
5 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ void* bootstrap_thread_func(void* x) {
void SystemThread::start(std::function<void(SystemThreadInterface&)> f) {
printf("# Initialize %s...\n", name.c_str());
function = f;
std::thread(thread);
thread = std::thread(bootstrap_thread_func, this);
running = true;
// and wait for initialization