Skip to content

Commit

Permalink
Add num threads to queuedprocess algo
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Nov 15, 2023
1 parent 81fb0fd commit 08a330f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MiscAlgorithms/RuntimeAlgorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ function take!(algo::QueuedProcessAlgorithm)
return take!(algo.outputChannels[outputOrder])
end

nthreads(algo::QueuedProcessAlgorithm) = length(algo.threads)

export MultiThreadedAlgorithmParameter, MultiThreadedAlgorithm, MultiThreadedInput
struct MultiThreadedInput
scheduler::AbstractMultiThreadedProcessing
Expand Down

0 comments on commit 08a330f

Please sign in to comment.