diff --git a/include/uv.h b/include/uv.h index 442c6d758fc79bc47ce2005931a015901453e610..924dc717c59a5b0dee408b9ee8f9f251be3bb0ab 100644 --- a/include/uv.h +++ b/include/uv.h @@ -1229,7 +1229,7 @@ UV_EXTERN int uv_queue_work_ordered(uv_loop_t* loop, uv_work_cb work_cb, uv_after_work_cb after_work_cb, uv_qos_t qos, - uint64_t taskId); + uintptr_t taskId); struct uv_cpu_times_s { uint64_t user; /* milliseconds */ diff --git a/src/threadpool.c b/src/threadpool.c index a95ad8abd3be33836413516bc2b8f0d2bd09ffe6..e4fe9b6855afc603a248a2fd2eaaa8116996d119 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -718,7 +718,7 @@ void uv__work_submit_ordered(uv_loop_t* loop, ffrt_qos_t qos, void (*work)(struct uv__work *w, int qos), void (*done)(struct uv__work *w, int status), - uint64_t taskId) { + uintptr_t taskId) { uv_once(&once, init_once); ffrt_task_attr_t attr; ffrt_task_attr_init(&attr); @@ -918,7 +918,7 @@ int uv_queue_work_ordered(uv_loop_t* loop, uv_work_cb work_cb, uv_after_work_cb after_work_cb, uv_qos_t qos, - uint64_t taskId) { + uintptr_t taskId) { #ifdef USE_FFRT if (work_cb == NULL) return UV_EINVAL;