libMesh
Public Member Functions | List of all members
libMesh::Threads::NonConcurrentThread Class Reference

Simple compatibility class for std::thread 'concurrent' execution. More...

#include <threads.h>

Public Member Functions

template<typename Callable >
 NonConcurrentThread (Callable f)
 Constructor. More...
 
void join ()
 Join is a no-op, since the constructor blocked until completion. More...
 
bool joinable () const
 Always joinable. More...
 

Detailed Description

Simple compatibility class for std::thread 'concurrent' execution.

Not at all concurrent, but provides a compatible interface.

Definition at line 69 of file threads.h.

Constructor & Destructor Documentation

template<typename Callable >
libMesh::Threads::NonConcurrentThread::NonConcurrentThread ( Callable  f)

Constructor.

Takes a callable function object and executes it. Our wrapper class actually blocks execution until the thread is complete.

Definition at line 78 of file threads.h.

78 { f(); }

Member Function Documentation

void libMesh::Threads::NonConcurrentThread::join ( )

Join is a no-op, since the constructor blocked until completion.

Definition at line 83 of file threads.h.

Referenced by libMesh::System::read_serialized_blocked_dof_objects().

83 {}
bool libMesh::Threads::NonConcurrentThread::joinable ( ) const

Always joinable.

Definition at line 88 of file threads.h.

88 { return true; }

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