Fix up threading code from port tests to windows.

This commit is contained in:
Richard Newton
2013-08-17 14:23:22 +01:00
parent 7f74fc7c99
commit a83baa9b0b
7 changed files with 18 additions and 24 deletions

View File

@@ -59,10 +59,10 @@ unsigned long zmq_stopwatch_stop (void *watch_)
return (unsigned long) (end - start);
}
void *zmq_threadstart(void* func, void* arg)
void *zmq_threadstart(zmq_thread_fn* func, void* arg)
{
zmq::thread_t* thread = new zmq::thread_t;
thread->start(static_cast<zmq::thread_fn*>(func), arg);
thread->start(func, arg);
return thread;
}