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

00110 { f(); }


Member Function Documentation

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

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

Definition at line 115 of file threads.h.

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

00115 {}

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

Always joinable.

Definition at line 120 of file threads.h.

00120 { return true; }


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

Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:49 UTC

Hosted By:
SourceForge.net Logo