From a8a9db53be27ac91050d3daebbe60b5b69817e9e Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 11 Apr 2021 12:09:42 +0200 Subject: [PATCH] remove some Lock() and Unlock() from Plugin --- winixd/core/plugin.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/winixd/core/plugin.cpp b/winixd/core/plugin.cpp index 2d2222f..c32f388 100644 --- a/winixd/core/plugin.cpp +++ b/winixd/core/plugin.cpp @@ -199,9 +199,7 @@ bool Plugin::SetDependency(PluginInfo & info) if( !res ) { - Lock(); log << log1 << "Plugin: cannot call a function - some of the winix pointers are null" << logend; - Unlock(); } info.db = db; @@ -382,9 +380,7 @@ void Plugin::Call(Session * ses, int message, Slots::iterator & slot, PluginInfo { if( config->log_plugin_call ) { - Lock(); log << log1 << "Plugin: calling plugin id: " << slot->second.index << ", message: " << message << logend; - Unlock(); } slot->second.is_running = true; @@ -399,20 +395,16 @@ void Plugin::Call(Session * ses, int message, Slots::iterator & slot, PluginInfo if( config->log_plugin_call ) { - Lock(); log << log1 << "Plugin: returning from plugin id: " << slot->second.index << ", message: " << message << ", result: " << (info.res? "true" : "false") << logend; - Unlock(); } } else { - Lock(); log << log1 << "Plugin: id: " << slot->second.index << ", message: " << message << ", recurrences are not allowed" << logend; - Unlock(); } }