OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
threading_tbb::future< void > Struct Template Reference

#include <threading_tbb.h>

Public Member Functions

 future ()=default
 
 future (future &&)=default
 
 future (std::unique_ptr< tbb_packaged_task< void >> &&p)
 
void wait ()
 
void get ()
 

Public Attributes

std::unique_ptr
< tbb_packaged_task< void > > 
task_
 

Detailed Description

template<>
struct threading_tbb::future< void >

Definition at line 60 of file threading_tbb.h.

Constructor & Destructor Documentation

threading_tbb::future< void >::future ( )
default
threading_tbb::future< void >::future ( future< void > &&  )
default
threading_tbb::future< void >::future ( std::unique_ptr< tbb_packaged_task< void >> &&  p)
inline

Definition at line 64 of file threading_tbb.h.

64 : task_(std::move(p)) {}
std::unique_ptr< tbb_packaged_task< void > > task_
Definition: threading_tbb.h:61

Member Function Documentation

void threading_tbb::future< void >::get ( )
inline

Definition at line 68 of file threading_tbb.h.

void threading_tbb::future< void >::wait ( )
inline

Definition at line 65 of file threading_tbb.h.

References threading_tbb::g_tbb_arena.

65  {
66  g_tbb_arena.execute([this] { task_->wait(); });
67  }
tbb::task_arena g_tbb_arena
std::unique_ptr< tbb_packaged_task< void > > task_
Definition: threading_tbb.h:61

Member Data Documentation

std::unique_ptr<tbb_packaged_task<void> > threading_tbb::future< void >::task_

Definition at line 61 of file threading_tbb.h.


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