parallel-cellular-automata
Framework for building parallel cellular automata.
Public Member Functions | List of all members
ThreadJoiner Class Reference

RAII class to join threads. More...

#include <threadpool.hpp>

Public Member Functions

 ThreadJoiner (std::vector< std::thread > &t)
 Construct a new ThreadJoiner object. More...
 
 ~ThreadJoiner ()
 Destroy the Thread Joiner object and in doing this join all the threads in the vector.
 

Detailed Description

RAII class to join threads.

See also
threadjoiner.cpp for the implementation

Constructor & Destructor Documentation

◆ ThreadJoiner()

ThreadJoiner::ThreadJoiner ( std::vector< std::thread > &  t)

Construct a new ThreadJoiner object.

Parameters
tvector containing the threads to join.

The documentation for this class was generated from the following files: