OmniSciDB  a5dc49c757
 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 59 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 63 of file threading_tbb.h.

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

Member Function Documentation

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

Definition at line 67 of file threading_tbb.h.

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

Definition at line 64 of file threading_tbb.h.

References threading_tbb::g_tbb_arena.

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

Member Data Documentation

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

Definition at line 60 of file threading_tbb.h.


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