From b1dc11a32ddfe0c4a099fb92bff608745551ebfa Mon Sep 17 00:00:00 2001 From: Merry Date: Tue, 17 May 2022 20:47:13 +0100 Subject: [PATCH] exception_handler_macos: Avoid use of deprecated function mach_port_destroy --- src/dynarmic/backend/x64/exception_handler_macos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dynarmic/backend/x64/exception_handler_macos.cpp b/src/dynarmic/backend/x64/exception_handler_macos.cpp index fbec78b1..5991d1c0 100644 --- a/src/dynarmic/backend/x64/exception_handler_macos.cpp +++ b/src/dynarmic/backend/x64/exception_handler_macos.cpp @@ -76,11 +76,11 @@ MachHandler::MachHandler() { #undef KCHECK thread = std::thread(&MachHandler::MessagePump, this); + thread.detach(); } MachHandler::~MachHandler() { - mach_port_destroy(mach_task_self(), server_port); - thread.join(); + mach_port_deallocate(mach_task_self(), server_port); } void MachHandler::MessagePump() {