From a0d548e6cdef36a8dae6e6834252475728bf8583 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:28:49 +0900 Subject: ZMQ_REENTRANT functionality removed It doesn't play well with multipart messages. Signed-off-by: Martin Sustrik --- src/socket_base.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/socket_base.cpp') diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 7ab00ea..38ec8c1 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -117,7 +117,6 @@ xs::socket_base_t *xs::socket_base_t::create (int type_, class ctx_t *parent_, xs::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_) : own_t (parent_, tid_), tag (0xbaddecaf), - reentrant (parent_->is_reentrant ()), ctx_terminated (false), destroyed (false), last_tsc (0), @@ -146,18 +145,6 @@ void xs::socket_base_t::stop () send_stop (); } -void xs::socket_base_t::lock () -{ - if (reentrant) - sync.lock (); -} - -void xs::socket_base_t::unlock () -{ - if (reentrant) - sync.unlock (); -} - int xs::socket_base_t::parse_uri (const char *uri_, std::string &protocol_, std::string &address_) { -- cgit v1.2.3