diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-22 09:31:48 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-22 14:40:08 +0100 |
commit | 788cb954b776ba31e7056b8855a8eaa2744e2fb7 (patch) | |
tree | 6810dc98ada6b9b80f1786d373ccb6bc1802cf23 | |
parent | b83262a1c025d0775d0f73c87341d71d7f1c3996 (diff) | |
download | cmumble-788cb954b776ba31e7056b8855a8eaa2744e2fb7.tar.gz cmumble-788cb954b776ba31e7056b8855a8eaa2744e2fb7.tar.bz2 cmumble-788cb954b776ba31e7056b8855a8eaa2744e2fb7.zip |
message.c: Remove the send mutex
Since we're now sending from the main thread only,
this is no longer needed.
-rw-r--r-- | src/message.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |