We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e57bd11 commit 8b64123Copy full SHA for 8b64123
test/distributed_exec.jl
@@ -160,12 +160,12 @@ function _getenv_include_thread_unsafe()
160
end
161
const _env_include_thread_unsafe = _getenv_include_thread_unsafe()
162
function include_thread_unsafe_tests()
163
- if Threads.maxthreadid() > 1
+ if Threads.threadpoolsize(:default) > 1
164
if _env_include_thread_unsafe
165
return true
166
167
- msg = "Skipping a thread-unsafe test because `Threads.maxthreadid() > 1`"
168
- @warn msg Threads.maxthreadid()
+ msg = "Skipping a thread-unsafe test because `Threads.threadpoolsize(:default) > 1`"
+ @warn msg Threads.threadpoolsize(:default)
169
Test.@test_broken false
170
return false
171
0 commit comments