Test and fix workqueue_entry_cancel().

This commit is contained in:
Nick Mathewson
2013-09-28 00:33:10 -04:00
parent ebbc177005
commit e5f8c772f4
3 changed files with 71 additions and 20 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ int threadpool_queue_for_all(threadpool_t *pool,
int (*fn)(void *, void *),
void (*reply_fn)(void *),
void *arg);
int workqueue_entry_cancel(workqueue_entry_t *pending_work);
void *workqueue_entry_cancel(workqueue_entry_t *pending_work);
threadpool_t *threadpool_new(int n_threads,
replyqueue_t *replyqueue,
void *(*new_thread_state_fn)(void*),