renamed from zs to zmq

This commit is contained in:
Martin Sustrik
2009-08-03 11:30:13 +02:00
parent 183b688764
commit cc3755a16f
120 changed files with 1258 additions and 1250 deletions

View File

@@ -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