Update cathook for new boost mutex in IPC

This commit is contained in:
BenCat07 2021-04-05 22:49:31 +02:00 committed by LightCat
parent c0969586d4
commit 2222511e36
2 changed files with 2 additions and 4 deletions

2
external/simple-ipc vendored

@ -1 +1 @@
Subproject commit 53e629695cbc941f9be5c1e398d6bb8d4eb9c433
Subproject commit 085ec77f13ac8143116fe57317d9b7275fe16a57

View File

@ -28,9 +28,7 @@ static settings::String server_name{ "ipc.server", "cathook_followbot_server" };
CatCommand fix_deadlock("ipc_fix_deadlock", "Fix deadlock", []() {
if (peer)
{
pthread_mutex_unlock(&peer->memory->mutex);
}
peer->memory->mutex.unlock();
});
CatCommand id("ipc_id", "Echo ipc id", []() { logging::Info("%d", ipc::peer->client_id); });