OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
threadpool::FuturesThreadPool< T, ENABLE > Class Template Reference

#include <threadpool.h>

+ Inheritance diagram for threadpool::FuturesThreadPool< T, ENABLE >:
+ Collaboration diagram for threadpool::FuturesThreadPool< T, ENABLE >:

Public Member Functions

 FuturesThreadPool ()
 
void join ()
 
- Public Member Functions inherited from threadpool::FuturesThreadPoolBase< T >
template<class Function , class... Args>
void spawn (Function &&f, Args &&...args)
 

Additional Inherited Members

- Protected Attributes inherited from threadpool::FuturesThreadPoolBase< T >
std::vector< std::future< T > > threads_
 

Detailed Description

template<typename T, typename ENABLE = void>
class threadpool::FuturesThreadPool< T, ENABLE >

Definition at line 42 of file threadpool.h.

Constructor & Destructor Documentation

template<typename T, typename ENABLE = void>
threadpool::FuturesThreadPool< T, ENABLE >::FuturesThreadPool ( )
inline

Definition at line 44 of file threadpool.h.

44 {}

Member Function Documentation

template<typename T, typename ENABLE = void>
void threadpool::FuturesThreadPool< T, ENABLE >::join ( )
inline

Definition at line 46 of file threadpool.h.

References threadpool::FuturesThreadPoolBase< T >::threads_.

Referenced by ResultSet::ResultSetComparator< BUFFER_ITERATOR_TYPE >::materializeCountDistinctColumn().

46  {
47  for (auto& child : this->threads_) {
48  child.wait();
49  }
50  for (auto& child : this->threads_) {
51  child.get();
52  }
53  }
std::vector< std::future< T > > threads_
Definition: threadpool.h:38

+ Here is the caller graph for this function:


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