Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: support for NULL as uv_queue_work callback
Browse files Browse the repository at this point in the history
This will make uv_queue_work consistent with other functions, where it's
possible to omit the callback. I'm pretty sure that this is already
implemented for unix systems, although I didn't test the unix part of
uv_queue_work.
  • Loading branch information
lhecker authored and piscisaureus committed Sep 13, 2012
1 parent 1f9bd99 commit 15ba800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/threadpool.c
Expand Up @@ -68,7 +68,7 @@ int uv_queue_work(uv_loop_t* loop, uv_work_t* req, uv_work_cb work_cb,


void uv_process_work_req(uv_loop_t* loop, uv_work_t* req) {
assert(req->after_work_cb);
uv__req_unregister(loop, req);
req->after_work_cb(req);
if(req->after_work_cb)
req->after_work_cb(req);
}

0 comments on commit 15ba800

Please sign in to comment.