-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an OS independent way to set/get UV_THREADPOOL_SIZE #4401
Comments
Maybe |
Yeah, looks like I missed it :D Anyway, having a native API would be still better rather than dealing with env. |
A native API would not be very reliable really, because just setting the env var doesn't do anything if the threadpool has already been started anyway... |
That's the point. |
SGTM. Ping @libuv/collaborators |
SGRM. setenv is also thread-unsafe by design in posix, so it is good to have safe alternatives |
I can investigate on this one. |
Go for it! |
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This call will set the threadpool size from libuv and set `UV_THREADPOOL_SIZE` environment variable. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
This patch will allow to grow and set the thread pool size on demand via libuv calls instead of just `UV_THREADPOOL_SIZE` but `UV_THREADPOOL_SIZE` will remain as the initial value. Fixes: libuv#4401 Signed-off-by: Juan José Arboleda <[email protected]>
Currently, if you want to increase thread pool size, you need to write something like that:
Which is not really convenient.
Instead, it would be really nice to have some low-level function that does this thing for you.
Something that you can call during early init procedure, like
uv_replace_allocator()
.The text was updated successfully, but these errors were encountered: