libMesh::Threads::Thread Class Reference

#include <threads.h>

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 129 of file threads.h.

Constructor & Destructor Documentation

template<typename Callable >
libMesh::Threads::Thread::Thread ( 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 138 of file threads.h.

138 { f(); }

Member Function Documentation

void libMesh::Threads::Thread::join ( )

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

Definition at line 143 of file threads.h.

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

143 {}
bool libMesh::Threads::Thread::joinable ( ) const

Always joinable.

Definition at line 148 of file threads.h.

148 { return true; }

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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:33 UTC

Hosted By: Logo