mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Problem: unused Windows-specific code in sleep_ms
Solution: remove it since sleep_ms isn't used on Windows
This commit is contained in:
parent
e3a96778b6
commit
e9678efe00
@ -77,10 +77,7 @@ static int sleep_ms (unsigned int ms_)
|
|||||||
{
|
{
|
||||||
if (ms_ == 0)
|
if (ms_ == 0)
|
||||||
return 0;
|
return 0;
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if defined ZMQ_HAVE_ANDROID
|
||||||
Sleep (ms_ > 0 ? ms_ : INFINITE);
|
|
||||||
return 0;
|
|
||||||
#elif defined ZMQ_HAVE_ANDROID
|
|
||||||
usleep (ms_ * 1000);
|
usleep (ms_ * 1000);
|
||||||
return 0;
|
return 0;
|
||||||
#elif defined ZMQ_HAVE_VXWORKS
|
#elif defined ZMQ_HAVE_VXWORKS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user