DDS  ver. 2.0
Public Member Functions | List of all members
dds::ssh_cmd::CThreadPool< _T, _P > Class Template Reference

#include <threadPool.h>

Public Member Functions

 CThreadPool (size_t _threadsCount)
 
 ~CThreadPool ()
 
void pushTask (typename CTask< _T, _P >::task_t &_task, _P _param)
 
void execute ()
 
void stop (bool processRemainingJobs=false)
 
size_t tasksCount () const
 
size_t successfulTasks () const
 

Constructor & Destructor Documentation

◆ CThreadPool()

template<class _T , class _P >
dds::ssh_cmd::CThreadPool< _T, _P >::CThreadPool ( size_t  _threadsCount)
inline

◆ ~CThreadPool()

template<class _T , class _P >
dds::ssh_cmd::CThreadPool< _T, _P >::~CThreadPool ( )
inline

Member Function Documentation

◆ execute()

template<class _T , class _P >
void dds::ssh_cmd::CThreadPool< _T, _P >::execute ( )
inline

◆ pushTask()

template<class _T , class _P >
void dds::ssh_cmd::CThreadPool< _T, _P >::pushTask ( typename CTask< _T, _P >::task_t _task,
_P  _param 
)
inline

◆ stop()

template<class _T , class _P >
void dds::ssh_cmd::CThreadPool< _T, _P >::stop ( bool  processRemainingJobs = false)
inline

◆ successfulTasks()

template<class _T , class _P >
size_t dds::ssh_cmd::CThreadPool< _T, _P >::successfulTasks ( ) const
inline

◆ tasksCount()

template<class _T , class _P >
size_t dds::ssh_cmd::CThreadPool< _T, _P >::tasksCount ( ) const
inline

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