From 788cb954b776ba31e7056b8855a8eaa2744e2fb7 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 22 Nov 2013 09:31:48 +0100 Subject: message.c: Remove the send mutex Since we're now sending from the main thread only, this is no longer needed. --- src/message.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/message.c b/src/message.c index 59f9718..e5462d8 100644 --- a/src/message.c +++ b/src/message.c @@ -3,8 +3,6 @@ #define PREAMBLE_SIZE 6 -GStaticMutex write_mutex = G_STATIC_MUTEX_INIT; - static const struct { const ProtobufCMessageDescriptor *descriptor; const char *name; @@ -59,10 +57,8 @@ cmumble_send_msg(struct cmumble *cm, ProtobufCMessage *msg, add_preamble(preamble, type, buffer.len); - g_static_mutex_lock(&write_mutex); g_output_stream_write(cm->con.output, preamble, PREAMBLE_SIZE, NULL, NULL); g_output_stream_write(cm->con.output, buffer.data, buffer.len, NULL, NULL); - g_static_mutex_unlock(&write_mutex); PROTOBUF_C_BUFFER_SIMPLE_CLEAR(&buffer); } -- cgit