mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-25 10:09:38 +02:00
Functions passed to pthread_create are declared as extern "C"
So far these were declared as C++ static functions which was incorrect and caused warnings with SunStudio. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -54,20 +54,20 @@ namespace zmq
|
||||
|
||||
// Waits for thread termination.
|
||||
void stop ();
|
||||
|
||||
// These are internal members. They should be private, however then
|
||||
// they would not be accessible from the main C routine of the thread.
|
||||
thread_fn *tfn;
|
||||
void *arg;
|
||||
|
||||
private:
|
||||
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
static unsigned int __stdcall thread_routine (void *arg_);
|
||||
HANDLE descriptor;
|
||||
#else
|
||||
static void *thread_routine (void *arg_);
|
||||
pthread_t descriptor;
|
||||
#endif
|
||||
|
||||
thread_fn *tfn;
|
||||
void *arg;
|
||||
|
||||
thread_t (const thread_t&);
|
||||
void operator = (const thread_t&);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user