Revision f2e5dca4 thread-pool.c

b/thread-pool.c
303 303
    QLIST_INIT(&pool->head);
304 304
    QTAILQ_INIT(&pool->request_list);
305 305

  
306
    aio_set_event_notifier(ctx, &pool->notifier, event_notifier_ready,
307
                           NULL);
306
    aio_set_event_notifier(ctx, &pool->notifier, event_notifier_ready);
308 307
}
309 308

  
310 309
ThreadPool *thread_pool_new(AioContext *ctx)
......
338 337

  
339 338
    qemu_mutex_unlock(&pool->lock);
340 339

  
341
    aio_set_event_notifier(pool->ctx, &pool->notifier, NULL, NULL);
340
    aio_set_event_notifier(pool->ctx, &pool->notifier, NULL);
342 341
    qemu_sem_destroy(&pool->sem);
343 342
    qemu_cond_destroy(&pool->check_cancel);
344 343
    qemu_cond_destroy(&pool->worker_stopped);

Also available in: Unified diff