From b8cab5ce445078eca6f864ff0bf38f79c1c95227 Mon Sep 17 00:00:00 2001 From: atmgnd Date: Fri, 14 May 2021 12:52:03 +0800 Subject: [PATCH] fix crt mutex unlock exception on exit If you configure project with: meson --buildtype=release --backend=vs2015 --buildtype=debug build Then you can see there is an exception on exit, then reason is same, see http://stackoverflow.com/a/34121629/3408572 Signed-off-by: atmgnd --- examples/cpp-multithread/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cpp-multithread/main.cpp b/examples/cpp-multithread/main.cpp index f97bc6f2a..c8cbaafb2 100644 --- a/examples/cpp-multithread/main.cpp +++ b/examples/cpp-multithread/main.cpp @@ -37,6 +37,7 @@ void threadproc(void) strcpy(s, base); uiQueueMain(sayTime, s); } + ourlock.unlock(); } int onClosing(uiWindow *w, void *data)