From 0fa4bb374747e382aaa7bed505e09390120a62ec Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 2 May 2026 21:24:11 +0800 Subject: [PATCH 1/2] Fix worktree counting on Julia 1.13 --- src/threadtasks.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/threadtasks.jl b/src/threadtasks.jl index 43dae15..1ec5f29 100644 --- a/src/threadtasks.jl +++ b/src/threadtasks.jl @@ -61,7 +61,11 @@ end @noinline function wake_thread!(_tid::T) where {T<:Integer} tid = _tid % Int tidp1 = tid + one(tid) - assume(unsigned(length(Base.Workqueues)) > unsigned(tid)) + @static if VERSION >= v"1.13-" + assume(unsigned(length(Base.Workqueues())) > unsigned(tid)) + else + assume(unsigned(length(Base.Workqueues)) > unsigned(tid)) + end assume(unsigned(length(TASKS)) > unsigned(tidp1)) @inbounds push!(Base.Workqueues[tidp1], TASKS[tid]) ccall(:jl_wakeup_thread, Cvoid, (Int16,), tid % Int16) From 6a78229ed7a02553f56f9beda619e3663ca679c1 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 2 May 2026 21:27:36 +0800 Subject: [PATCH 2/2] Bump version to 0.5.6 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 34a9a80..69b6465 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ThreadingUtilities" uuid = "8290d209-cae3-49c0-8002-c8c24d57dab5" authors = ["Chris Elrod and contributors"] -version = "0.5.5" +version = "0.5.6" [deps] ManualMemory = "d125e4d3-2237-4719-b19c-fa641b8a4667"