diff options
Diffstat (limited to 'src/thread.cpp')
-rw-r--r-- | src/thread.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/thread.cpp b/src/thread.cpp index 7cf54f2..77993e2 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -21,9 +21,9 @@ #include "err.hpp" #include "platform.hpp" -#ifdef ZS_HAVE_WINDOWS +#ifdef ZMQ_HAVE_WINDOWS -void zs::thread_t::start (thread_fn *tfn_, void *arg_) +void zmq::thread_t::start (thread_fn *tfn_, void *arg_) { tfn = tfn_; arg =arg_; @@ -32,13 +32,13 @@ void zs::thread_t::start (thread_fn *tfn_, void *arg_) win_assert (descriptor != NULL); } -void zs::thread_t::stop () +void zmq::thread_t::stop () { DWORD rc = WaitForSingleObject (descriptor, INFINITE); win_assert (rc != WAIT_FAILED); } -unsigned int __stdcall zs::thread_t::thread_routine (void *arg_) +unsigned int __stdcall zmq::thread_t::thread_routine (void *arg_) { thread_t *self = (thread_t*) arg_; self->tfn (self->arg); @@ -49,7 +49,7 @@ unsigned int __stdcall zs::thread_t::thread_routine (void *arg_) #include <signal.h> -void zs::thread_t::start (thread_fn *tfn_, void *arg_) +void zmq::thread_t::start (thread_fn *tfn_, void *arg_) { tfn = tfn_; arg =arg_; @@ -57,13 +57,13 @@ void zs::thread_t::start (thread_fn *tfn_, void *arg_) errno_assert (rc == 0); } -void zs::thread_t::stop () +void zmq::thread_t::stop () { int rc = pthread_join (descriptor, NULL); errno_assert (rc == 0); } -void *zs::thread_t::thread_routine (void *arg_) +void *zmq::thread_t::thread_routine (void *arg_) { #if !defined ZMQ_HAVE_OPENVMS // Following code will guarantee more predictable latecnies as it'll |