setup_linux: Improve segments init & add modify_ldt fallback

This commit is contained in:
2025-11-11 00:24:42 -07:00
parent 6c4f332705
commit f18f2a929d
9 changed files with 323 additions and 86 deletions

View File

@@ -110,7 +110,7 @@ void threadCleanup(void *param) {
}
g_currentThreadObject = nullptr;
wibo::notifyDllThreadDetach();
currentThreadTeb = nullptr;
wibo::uninstallTebForCurrentThread();
// TODO: mark mutexes owned by this thread as abandoned
obj->cv.notify_all();
obj->notifyWaiters(false);