ThreadTools.jl
ThreadTools.jl copied to clipboard
Some tools for working with threads in Julia
So instead of ``` if threading @threads for x in y foo etc. end else for x in y foo etc. end end ``` you can do ``` @maybe_threads threading...
Register
@JuliaRegistrator register()
Whenever I `Ctrl+C` during a `tmap` call Julia crashes. ```julia fatal: error thrown and no exception handler available. InterruptException() sigatomic_end at ./c.jl:425 [inlined] task_done_hook at ./task.jl:440 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]...
Dear BaggePinnen, in https://discourse.julialang.org/t/regular-expression-and-threads/31415/4 I was testing a multi-threading performance of Regexp library. I have tried `tmap`, but since it executes one thread per item, it is kind of wasteful....