summaryrefslogtreecommitdiff
path: root/src/thread.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-03 11:30:13 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-03 11:30:13 +0200
commitcc3755a16f00026af882ed14d122cc8aa6d50e82 (patch)
tree33a2197bab1bd6068dbfcc446fe70aaa07808fa9 /src/thread.cpp
parent183b6887644ac05c951a3f9143248ed86e91052f (diff)
renamed from zs to zmq
Diffstat (limited to 'src/thread.cpp')
-rw-r--r--src/thread.cpp14
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