ThreadPool::Handle Class Reference

#include <ArmarXCore/core/services/tasks/ThreadPool.h>

Public Member Functions

void detach ()
 
const std::shared_future< void > & getFuture () const
 
 Handle ()
 
 Handle (Handle &&)=default
 
 Handle (std::shared_future< void > functionFinished)
 
bool isDetached () const
 
bool isJoined () const
 
bool isValid () const
 
void join ()
 
 operator bool () const
 
Handleoperator= (Handle &&)=default
 
 ~Handle () noexcept(false)
 

Detailed Description

Definition at line 52 of file ThreadPool.h.

Constructor & Destructor Documentation

◆ Handle() [1/3]

Handle ( )

Definition at line 147 of file ThreadPool.cpp.

◆ Handle() [2/3]

Handle ( Handle &&  )
default

◆ Handle() [3/3]

Handle ( std::shared_future< void >  functionFinished)

Definition at line 153 of file ThreadPool.cpp.

◆ ~Handle()

~Handle ( )
noexcept

Definition at line 160 of file ThreadPool.cpp.

Member Function Documentation

◆ detach()

void detach ( )

Definition at line 190 of file ThreadPool.cpp.

◆ getFuture()

const std::shared_future< void > & getFuture ( ) const

Definition at line 206 of file ThreadPool.cpp.

◆ isDetached()

bool isDetached ( ) const

Definition at line 216 of file ThreadPool.cpp.

◆ isJoined()

bool isJoined ( ) const

Definition at line 211 of file ThreadPool.cpp.

◆ isValid()

bool isValid ( ) const

Definition at line 168 of file ThreadPool.cpp.

+ Here is the caller graph for this function:

◆ join()

void join ( )

Definition at line 173 of file ThreadPool.cpp.

◆ operator bool()

operator bool ( ) const
inline

Definition at line 60 of file ThreadPool.h.

+ Here is the call graph for this function:

◆ operator=()

Handle& operator= ( Handle &&  )
default

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