mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 23:50:00 +01:00
exception_handler_macos: Avoid use of deprecated function mach_port_destroy
This commit is contained in:
parent
e007d94133
commit
b1dc11a32d
@ -76,11 +76,11 @@ MachHandler::MachHandler() {
|
|||||||
#undef KCHECK
|
#undef KCHECK
|
||||||
|
|
||||||
thread = std::thread(&MachHandler::MessagePump, this);
|
thread = std::thread(&MachHandler::MessagePump, this);
|
||||||
|
thread.detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
MachHandler::~MachHandler() {
|
MachHandler::~MachHandler() {
|
||||||
mach_port_destroy(mach_task_self(), server_port);
|
mach_port_deallocate(mach_task_self(), server_port);
|
||||||
thread.join();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MachHandler::MessagePump() {
|
void MachHandler::MessagePump() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user