| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TeMutex Class Reference
Multi-programming tools.

A class to deal with critical region locking. More...

`#include <TeMutex.h>`

List of all members.

## Public Member Functions

| TeMutex ()
| Default constructor.
| ~TeMutex ()
| Default destructor.
void | lock ()
| Lock the current object instance.
bool | tryLock ()
| Try to lock the current object instance.
void | unLock ()
| Unlock the current object instance.

## Detailed Description

A class to deal with critical region locking.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

## Constructor & Destructor Documentation

TeMutex::TeMutex | ( |  | ) |

Default constructor.

TeMutex::~TeMutex | ( |  | ) |

Default destructor.

## Member Function Documentation

void TeMutex::lock | ( |  | ) | `[inline]`

Lock the current object instance.

Note:
  If section is already busy then the current thread will be blocked until it's ready again.

bool TeMutex::tryLock | ( |  | ) | `[inline]`

Try to lock the current object instance.

Returns:
  true if OK, false if unable to lock.

Note:
  If section is busy, this method will return false without blocking the current thread.

void TeMutex::unLock | ( |  | ) | `[inline]`

Unlock the current object instance.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeMutex.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeMutex.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines