Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DummyThread Class Reference

#include <G4Threading.hh>

Public Types

using native_handle_type = G4int
 
using id = std::thread::id
 

Public Member Functions

 G4DummyThread ()
 
template<typename _Func , typename... _Args>
 G4DummyThread (_Func func, _Args &&... _args)
 
native_handle_type native_handle () const
 
G4bool joinable () const
 
id get_id () const noexcept
 
void swap (G4DummyThread &)
 
void join ()
 
void detach ()
 

Static Public Member Functions

static unsigned int hardware_concurrency () noexcept
 

Detailed Description

Definition at line 199 of file G4Threading.hh.

Member Typedef Documentation

◆ id

using G4DummyThread::id = std::thread::id

Definition at line 203 of file G4Threading.hh.

◆ native_handle_type

Definition at line 202 of file G4Threading.hh.

Constructor & Destructor Documentation

◆ G4DummyThread() [1/2]

G4DummyThread::G4DummyThread ( )
inline

Definition at line 207 of file G4Threading.hh.

207{}

◆ G4DummyThread() [2/2]

template<typename _Func , typename... _Args>
G4DummyThread::G4DummyThread ( _Func func,
_Args &&... _args )
inline

Definition at line 210 of file G4Threading.hh.

211 {
212 func(std::forward<_Args>(_args)...);
213 }

Member Function Documentation

◆ detach()

void G4DummyThread::detach ( )
inline

Definition at line 221 of file G4Threading.hh.

221{}

◆ get_id()

id G4DummyThread::get_id ( ) const
inlinenoexcept

Definition at line 218 of file G4Threading.hh.

218{ return std::this_thread::get_id(); }

◆ hardware_concurrency()

static unsigned int G4DummyThread::hardware_concurrency ( )
inlinestaticnoexcept

Definition at line 224 of file G4Threading.hh.

225 {
226 return std::thread::hardware_concurrency();
227 }

◆ join()

void G4DummyThread::join ( )
inline

Definition at line 220 of file G4Threading.hh.

220{}

◆ joinable()

G4bool G4DummyThread::joinable ( ) const
inline

Definition at line 217 of file G4Threading.hh.

217{ return true; }

◆ native_handle()

native_handle_type G4DummyThread::native_handle ( ) const
inline

Definition at line 216 of file G4Threading.hh.

216{ return native_handle_type(); }
G4int native_handle_type

◆ swap()

void G4DummyThread::swap ( G4DummyThread & )
inline

Definition at line 219 of file G4Threading.hh.

219{}

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