Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 05_threadpool/modulename.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ Handle<Value> Async(const Arguments& args) {
// Schedule our work request with libuv. Here you can specify the functions
// that should be executed in the threadpool and back in the main thread
// after the threadpool function completed.
int status = uv_queue_work(uv_default_loop(), req, AsyncWork, AsyncAfter);
int status = uv_queue_work(uv_default_loop(), req, AsyncWork,
(uv_after_work_cb)AsyncAfter);
assert(status == 0);

return Undefined();
Expand Down
3 changes: 2 additions & 1 deletion xx_benchmark/modulename.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Handle<Value> Fn3(const Arguments& args) {
baton->request.data = baton;
Local<Function> callback = Local<Function>::Cast(args[0]);
baton->callback = Persistent<Function>::New(callback);
uv_queue_work(uv_default_loop(), &baton->request, Fn3Work, Fn3After);
uv_queue_work(uv_default_loop(), &baton->request, Fn3Work,
(uv_after_work_cb)Fn3After);
return Undefined();
}

Expand Down