Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Teuchos::ThreadLock Class Reference

Basic portable thread lock primative class. More...

#include <Teuchos_SharedAccessPolicy.hpp>

Public Member Functions

 ThreadLock ()
 
 ~ThreadLock ()
 
bool try_lock ()
 
void lock ()
 
void unlock ()
 

Detailed Description

Basic portable thread lock primative class.

This is a heavy-weight appraoch to lock a thread.

This class may or may not be exposed in the Teuchos namespace. It might just be exposed as a typedef in SharedAccessPolicy.

Definition at line 33 of file Teuchos_SharedAccessPolicy.hpp.

Constructor & Destructor Documentation

Teuchos::ThreadLock::ThreadLock ( )

Teuchos::ThreadLock::~ThreadLock ( )

Member Function Documentation

bool Teuchos::ThreadLock::try_lock ( )

void Teuchos::ThreadLock::lock ( )

void Teuchos::ThreadLock::unlock ( )


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