From ffa9d35bc6d41ba51fd1b9eba2760a72ed1623b1 Mon Sep 17 00:00:00 2001 From: Mason Protter Date: Mon, 29 Jan 2024 15:01:23 +0100 Subject: [PATCH] fix `using` error --- src/tools.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools.jl b/src/tools.jl index 471be6ca..5c386704 100644 --- a/src/tools.jl +++ b/src/tools.jl @@ -1,6 +1,6 @@ module Tools -using Base.Threads: nthreads, threadpoolsize +using Base.Threads: nthreads """ Returns the thread id of the `n`th Julia thread in the `:default` threadpool. @@ -11,7 +11,7 @@ Returns the thread id of the `n`th Julia thread in the `:default` threadpool. return n else @boundscheck 1 <= n <= nthreads(:default) - return n + threadpoolsize(:interactive) # default threads after interactive threads + return n + Threads.threadpoolsize(:interactive) # default threads after interactive threads end end