exception_handler_macos: Avoid use of deprecated function mach_port_destroy
This commit is contained in:
parent
e007d94133
commit
b1dc11a32d
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue