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
+10 -2
View File
@@ -39,6 +39,10 @@
u8* g_ee_main_mem = nullptr;
/*!
* runtime.cpp - Deci2Listener has been disabled for now, pending rewriting for Windows.
*/
namespace {
/*!
@@ -48,7 +52,11 @@ namespace {
void deci2_runner(SystemThreadInterface& interfaces) {
// // callback function so the server knows when to give up and shutdown
interfaces.initialization_complete();
while (true) {
}
// // callback function so the server knows when to give up and shutdown
// std::function<bool()> shutdown_callback = [&]() { return interfaces.get_want_exit(); };
//
// // create and register server
@@ -237,7 +245,7 @@ void exec_runtime(int argc, char** argv) {
// step 3: start the EE!
iop_thread.start(iop_runner);
ee_thread.start(ee_runner);
//deci_thread.start(deci2_runner);
deci_thread.start(deci2_runner);
// step 4: wait for EE to signal a shutdown, which will cause the DECI thread to join.
deci_thread.join();