NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ff_common::ThreadPool Class Reference

#include <thread.h>

Public Types

typedef std::tuple< std::function< void(void)>, pthread_mutex_t *, pthread_cond_t *, bool > VarsTuple
 

Public Member Functions

 ThreadPool ()
 
 ~ThreadPool ()
 
 ThreadPool (const ThreadPool &)=delete
 
ThreadPooloperator= (const ThreadPool &)=delete
 
template<typename Function , typename... Args>
void AddTask (Function &&f, Args &&... args)
 
void Join ()
 

Member Typedef Documentation

◆ VarsTuple

typedef std::tuple<std::function<void(void)>, pthread_mutex_t*, pthread_cond_t*, bool> ff_common::ThreadPool::VarsTuple

Constructor & Destructor Documentation

◆ ThreadPool() [1/2]

ff_common::ThreadPool::ThreadPool ( )

◆ ~ThreadPool()

ff_common::ThreadPool::~ThreadPool ( )

◆ ThreadPool() [2/2]

ff_common::ThreadPool::ThreadPool ( const ThreadPool )
delete

Member Function Documentation

◆ AddTask()

template<typename Function , typename... Args>
void ff_common::ThreadPool::AddTask ( Function &&  f,
Args &&...  args 
)
inline

◆ Join()

void ff_common::ThreadPool::Join ( )

◆ operator=()

ThreadPool& ff_common::ThreadPool::operator= ( const ThreadPool )
delete

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