pthreads :: ThreadPool :: join_all
# Join all threads, waiting for all tasks to be completed fun join_all do # Wait for t in threads do t.join # Reset threads.clear end