/**
* Actual dispatching code
*/
-static void dispatch(private_fast_dispatcher_t *this)
+CALLBACK(dispatch, void*,
+ private_fast_dispatcher_t *this)
{
thread_cancelability(FALSE);
request->destroy(request);
}
+ return NULL;
}
METHOD(fast_dispatcher_t, run, void,
this->threads = malloc(sizeof(thread_t*) * threads);
while (threads)
{
- this->threads[threads - 1] = thread_create((thread_main_t)dispatch,
- this);
+ this->threads[threads - 1] = thread_create(dispatch, this);
if (this->threads[threads - 1])
{
threads--;