create host thread (fiber) that will be used to run the PPC instance note that host threads are fibers and not actual threads
| 73 | // create host thread (fiber) that will be used to run the PPC instance |
| 74 | // note that host threads are fibers and not actual threads |
| 75 | void __OSCreateHostThread(OSThread_t* thread) |
| 76 | { |
| 77 | cemu_assert_debug(__OSHasSchedulerLock()); |
| 78 | cemu_assert_debug(s_threadToFiber.find(thread) == s_threadToFiber.end()); |
| 79 | |
| 80 | OSHostThread* hostThread = new OSHostThread(thread); |
| 81 | s_threadToFiber.emplace(thread, hostThread); |
| 82 | } |
| 83 | |
| 84 | // delete host thread |
| 85 | void __OSDeleteHostThread(OSThread_t* thread) |
no test coverage detected