Skip to content

Commit

Permalink
fix import namespace of _emnapi_async_work_pool_size
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Aug 25, 2023
1 parent e92ad8f commit 8d4e9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emnapi/src/uv/threadpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void uv__threadpool_cleanup(void) {
nthreads = 0;
}

EMNAPI_EXTERN int _emnapi_async_work_pool_size();
EMNAPI_INTERNAL_EXTERN int _emnapi_async_work_pool_size();

static void init_threads(void) {
unsigned int i;
Expand Down
1 change: 1 addition & 0 deletions packages/test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function loadPath (request, options) {
})
const napiModule = createNapiModule({
context,
asyncWorkPoolSize: RUNTIME_UV_THREADPOOL_SIZE,
filename: request,
reuseWorker: true,
onCreateWorker () {
Expand Down

0 comments on commit 8d4e9e3

Please sign in to comment.