Fix thread thunker scope for MSVC.

Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
This commit is contained in:
Steven McCoy 2010-11-29 10:52:22 +01:00 committed by Martin Sustrik
parent 325dd2f091
commit 28db150aaf

View File

@ -27,7 +27,7 @@ extern "C"
{
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);
return 0;
}
@ -38,7 +38,7 @@ void zmq::thread_t::start (thread_fn *tfn_, void *arg_)
tfn = tfn_;
arg =arg_;
descriptor = (HANDLE) _beginthreadex (NULL, 0,
&zmq::thread_t::thread_routine, this, 0 , NULL);
&::thread_routine, this, 0 , NULL);
win_assert (descriptor != NULL);
}