From 8f74ba2697ffe47bc39e1114d044f0d75fad7a1c Mon Sep 17 00:00:00 2001 From: Lai Peter Jun Ann Date: Mon, 26 Aug 2024 11:46:47 +0800 Subject: [PATCH] jclklib: Remove rtpi mutex usage Signed-off-by: Lai Peter Jun Ann --- jclklib/client/connect_msg.cpp | 1 - jclklib/client/subscribe_msg.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/jclklib/client/connect_msg.cpp b/jclklib/client/connect_msg.cpp index d630eb93..15bf8283 100644 --- a/jclklib/client/connect_msg.cpp +++ b/jclklib/client/connect_msg.cpp @@ -91,7 +91,6 @@ PROCESS_MESSAGE_TYPE(ClientConnectMessage::processMessage) PrintDebug("Current state.sessionId: " + to_string(currentClientState->get_sessionId())); this->set_msgAck(ACK_NONE); - lock.unlock(); cv.notify_one(lock); return true; } diff --git a/jclklib/client/subscribe_msg.cpp b/jclklib/client/subscribe_msg.cpp index 85a9ac1b..89b1abd4 100644 --- a/jclklib/client/subscribe_msg.cpp +++ b/jclklib/client/subscribe_msg.cpp @@ -173,7 +173,6 @@ PROCESS_MESSAGE_TYPE(ClientSubscribeMessage::processMessage) ClientNotificationMessage::addClientState(currentClientState); this->set_msgAck(ACK_NONE); jcl_state jclCurrentState = currentClientState->get_eventState(); - lock.unlock(); cv.notify_one(lock); return true; }