[glib-networking/wip/openssl] Remove locking
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl] Remove locking
- Date: Thu, 21 Jan 2016 09:01:50 +0000 (UTC)
commit 7530f9faad5b7845febec6f1e19f86f076dd5cad
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Jan 21 10:01:28 2016 +0100
Remove locking
tls/openssl/gtlsbio.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/tls/openssl/gtlsbio.c b/tls/openssl/gtlsbio.c
index e998673..219212c 100644
--- a/tls/openssl/gtlsbio.c
+++ b/tls/openssl/gtlsbio.c
@@ -32,8 +32,6 @@ typedef struct {
GCancellable *write_cancellable;
gboolean read_blocking;
gboolean write_blocking;
- GMutex read_mutex;
- GMutex write_mutex;
} GTlsBio;
static void
@@ -121,13 +119,11 @@ gtls_bio_write (BIO *bio,
gbio = (GTlsBio *)bio->ptr;
- g_mutex_lock (&gbio->write_mutex);
ret = g_pollable_stream_write (g_io_stream_get_output_stream (gbio->io_stream),
in, inl,
gbio->write_blocking,
gbio->write_cancellable,
&error);
- g_mutex_unlock (&gbio->write_mutex);
if (ret == -1)
{
@@ -152,13 +148,11 @@ gtls_bio_read (BIO *bio,
gbio = (GTlsBio *)bio->ptr;
- g_mutex_lock (&gbio->read_mutex);
ret = g_pollable_stream_read (g_io_stream_get_input_stream (gbio->io_stream),
out, outl,
gbio->read_blocking,
gbio->read_cancellable,
&error);
- g_mutex_unlock (&gbio->read_mutex);
if (ret == -1)
{
@@ -214,8 +208,6 @@ g_tls_bio_new (GIOStream *io_stream)
gbio = g_new0 (GTlsBio, 1);
gbio->io_stream = g_object_ref (io_stream);
- g_mutex_init (&gbio->read_mutex);
- g_mutex_init (&gbio->write_mutex);
ret->ptr = gbio;
ret->init = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]