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 141 of file ThreadPool.cpp.

◆ Handle() [2/3]

Handle ( Handle &&  )
default

◆ Handle() [3/3]

Handle ( std::shared_future< void >  functionFinished)

Definition at line 147 of file ThreadPool.cpp.

◆ ~Handle()

~Handle ( )
noexcept

Definition at line 154 of file ThreadPool.cpp.

Member Function Documentation

◆ detach()

void detach ( )

Definition at line 184 of file ThreadPool.cpp.

◆ getFuture()

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

Definition at line 200 of file ThreadPool.cpp.

◆ isDetached()

bool isDetached ( ) const

Definition at line 210 of file ThreadPool.cpp.

◆ isJoined()

bool isJoined ( ) const

Definition at line 205 of file ThreadPool.cpp.

◆ isValid()

bool isValid ( ) const

Definition at line 162 of file ThreadPool.cpp.

+ Here is the caller graph for this function:

◆ join()

void join ( )

Definition at line 167 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: