Parallel Make  1.0
My implementation of make utility, which can run in multiple threads according to user request.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
thread_manager Class Reference

Class to manage storing new threads. More...

#include <thread_manager.hpp>

Public Member Functions

template<typename... Ts>
void emplace_back (Ts &&...ts)
 
decltype(m_threads)::iterator begin ()
 
decltype(m_threads)::iterator end ()
 
decltype(m_threads)::const_iterator begin () const
 
decltype(m_threads)::const_iterator end () const
 

Static Public Member Functions

static size_t get_value ()
 
static void increment ()
 Manually increments thread counter. More...
 
static void decrement ()
 Manually decrements thread counter. More...
 

Detailed Description

Class to manage storing new threads.

!

Member Function Documentation

decltype(m_threads) ::iterator thread_manager::begin ( )
inline

Returns the iterator to begin of the container.

Returns
iterator to the begin.
decltype(m_threads) ::const_iterator thread_manager::begin ( ) const
inline

Returns the iterator to begin of the container.

Returns
const_iterator to the begin.
static void thread_manager::decrement ( )
inlinestatic

Manually decrements thread counter.

template<typename... Ts>
void thread_manager::emplace_back ( Ts &&...  ts)
inline

Emplaces new thread by forwarding input values to my_thread constructor.

Template Parameters
Tstypes of input parameters.
Parameters
tsvalues of input parameters.
decltype(m_threads) ::iterator thread_manager::end ( )
inline

Returns the iterator past the end of the container.

Returns
iterator past the end.
decltype(m_threads) ::const_iterator thread_manager::end ( ) const
inline

Returns the iterator past the end of the container.

Returns
const_iterator past the end.
static size_t thread_manager::get_value ( )
inlinestatic

Gets total threads in the program. Does not count threads which are waiting to be joined.

Returns
total threads currently running in program.
static void thread_manager::increment ( )
inlinestatic

Manually increments thread counter.


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