Commit 28db150a authored by Steven McCoy's avatar Steven McCoy Committed by Martin Sustrik

Fix thread thunker scope for MSVC.

Signed-off-by: 's avatarSteven McCoy <steven.mccoy@miru.hk>
parent 325dd2f0
...@@ -27,7 +27,7 @@ extern "C" ...@@ -27,7 +27,7 @@ extern "C"
{ {
static unsigned int __stdcall thread_routine (void *arg_) static unsigned int __stdcall thread_routine (void *arg_)
{ {
thread_t *self = (zmq::thread_t*) arg_; zmq::thread_t *self = (zmq::thread_t*) arg_;
self->tfn (self->arg); self->tfn (self->arg);
return 0; return 0;
} }
...@@ -38,7 +38,7 @@ void zmq::thread_t::start (thread_fn *tfn_, void *arg_) ...@@ -38,7 +38,7 @@ void zmq::thread_t::start (thread_fn *tfn_, void *arg_)
tfn = tfn_; tfn = tfn_;
arg =arg_; arg =arg_;
descriptor = (HANDLE) _beginthreadex (NULL, 0, descriptor = (HANDLE) _beginthreadex (NULL, 0,
&zmq::thread_t::thread_routine, this, 0 , NULL); &::thread_routine, this, 0 , NULL);
win_assert (descriptor != NULL); win_assert (descriptor != NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment