mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-05 12:47:49 +01:00
renamed from zs to zmq
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user