mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Revert "Removed unreachable code paths"
This reverts commit 4f77cfa327
.
This commit is contained in:
parent
9b67fe8a98
commit
3ace237988
@ -184,10 +184,15 @@ void zmq::signaler_t::send ()
|
|||||||
errno_assert (sz == sizeof (inc));
|
errno_assert (sz == sizeof (inc));
|
||||||
#elif defined ZMQ_HAVE_WINDOWS
|
#elif defined ZMQ_HAVE_WINDOWS
|
||||||
unsigned char dummy = 0;
|
unsigned char dummy = 0;
|
||||||
const int nbytes =
|
while (true) {
|
||||||
::send (_w, reinterpret_cast<char *> (&dummy), sizeof (dummy), 0);
|
int nbytes =
|
||||||
wsa_assert (nbytes != SOCKET_ERROR);
|
::send (_w, reinterpret_cast<char *> (&dummy), sizeof (dummy), 0);
|
||||||
zmq_assert (nbytes == sizeof (dummy));
|
wsa_assert (nbytes != SOCKET_ERROR);
|
||||||
|
if (unlikely (nbytes == SOCKET_ERROR))
|
||||||
|
continue;
|
||||||
|
zmq_assert (nbytes == sizeof (dummy));
|
||||||
|
break;
|
||||||
|
}
|
||||||
#elif defined ZMQ_HAVE_VXWORKS
|
#elif defined ZMQ_HAVE_VXWORKS
|
||||||
unsigned char dummy = 0;
|
unsigned char dummy = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user