[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] remove mutex lock from PROCESS_CMD_NRP
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 1/2] remove mutex lock from PROCESS_CMD_NRP |
Date: |
Wed, 10 Nov 2010 21:05:53 +0100 |
since this define does not provide any reply we do not need mutex lock here
---
src/modules/module_main.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/modules/module_main.c b/src/modules/module_main.c
index 7bc7774..99f4b04 100644
--- a/src/modules/module_main.c
+++ b/src/modules/module_main.c
@@ -63,10 +63,7 @@ if (!strncmp(cmd_buf, #command, strlen(#command))){ \
#define PROCESS_CMD_NRP(command, function) \
if (!strcmp(cmd_buf, #command"\n")){ \
- pthread_mutex_lock(&module_stdout_mutex); \
function(); \
- fflush(stdout); \
- pthread_mutex_unlock(&module_stdout_mutex);\
}
int
--
1.6.0.4
- [PATCH 1/2] remove mutex lock from PROCESS_CMD_NRP,
Andrei Kholodnyi <=