Classes | Public Member Functions

Threads::DummyThreadMutex Class Reference

List of all members.

Classes

class  ScopedLock

Public Member Functions

void acquire () const
void release () const

Detailed Description

This class is used instead of a true lock class when not using multithreading. It allows to write programs such that they start new threads and/or lock objects in multithreading mode, and use dummy thread management and synchronisation classes instead when running in single-thread mode. Specifically, the new_thread functions only call the function but wait for it to return instead of running in on another thread, and the mutices do nothing really. The only reason to provide such a function is that the program can be compiled both in MT and non-MT mode without difference.

Author:
Wolfgang Bangerth, 2000, 2003

Definition at line 74 of file thread_management.h.


Member Function Documentation

void Threads::DummyThreadMutex::acquire (  ) const [inline]

Simulate acquisition of the mutex. As this class does nothing really, this function does nothing as well.

Definition at line 137 of file thread_management.h.

void Threads::DummyThreadMutex::release (  ) const [inline]

Simulate release of the mutex. As this class does nothing really, this function does nothing as well.

Definition at line 146 of file thread_management.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:17 by doxygen 1.7.2