Geant4 10.7.0
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 215 of file G4Threading.hh.

Member Typedef Documentation

◆ id

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

Definition at line 219 of file G4Threading.hh.

◆ native_handle_type

Definition at line 218 of file G4Threading.hh.

Constructor & Destructor Documentation

◆ G4DummyThread() [1/2]

G4DummyThread::G4DummyThread ( )
inline

Definition at line 223 of file G4Threading.hh.

223{}

◆ G4DummyThread() [2/2]

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

Definition at line 226 of file G4Threading.hh.

227 {
228 func(std::forward<_Args>(_args)...);
229 }

Member Function Documentation

◆ detach()

void G4DummyThread::detach ( )
inline

Definition at line 237 of file G4Threading.hh.

237{}

◆ get_id()

id G4DummyThread::get_id ( ) const
inlinenoexcept

Definition at line 234 of file G4Threading.hh.

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

◆ hardware_concurrency()

static unsigned int G4DummyThread::hardware_concurrency ( )
inlinestaticnoexcept

Definition at line 240 of file G4Threading.hh.

241 {
242 return std::thread::hardware_concurrency();
243 }

◆ join()

void G4DummyThread::join ( )
inline

Definition at line 236 of file G4Threading.hh.

236{}

◆ joinable()

G4bool G4DummyThread::joinable ( ) const
inline

Definition at line 233 of file G4Threading.hh.

233{ return true; }

◆ native_handle()

native_handle_type G4DummyThread::native_handle ( ) const
inline

Definition at line 232 of file G4Threading.hh.

232{ return native_handle_type(); }
G4int native_handle_type
Definition: G4Threading.hh:218

◆ swap()

void G4DummyThread::swap ( G4DummyThread )
inline

Definition at line 235 of file G4Threading.hh.

235{}

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