$extrastylesheet
libMesh::Threads::Thread Class Reference

#include <threads.h>

List of all members.

Public Member Functions

template<typename Callable >
 Thread (Callable f)
void join ()
bool joinable () const

Detailed Description

Simple compatibility class for std::thread 'concurrent' execution. Not at all concurrent, but provides a compatible interface.

Definition at line 130 of file threads.h.


Constructor & Destructor Documentation

template<typename Callable >
libMesh::Threads::Thread::Thread ( Callable  f) [inline]

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

Definition at line 139 of file threads.h.

{ f(); }

Member Function Documentation

void libMesh::Threads::Thread::join ( ) [inline]

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

Definition at line 144 of file threads.h.

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

{}
bool libMesh::Threads::Thread::joinable ( ) const [inline]

Always joinable.

Definition at line 149 of file threads.h.

{ return true; }

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