| TerraLib 4.1

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

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

Public Member Functions
SPL::slcMutex Class Reference

Multiplatform mutex class. More...

`#include <spl_mutex.h>`

Inheritance diagram for SPL::slcMutex:

List of all members.

## Public Member Functions

SPL_API | slcMutex (void)
| Default constructor.
virtual SPL_API | ~slcMutex (void)
| Default destructor.
virtual void SPL_API | Lock (void)
| Locks a section - If section is already busy then block and wait until it's ready again.
virtual long SPL_API | TryLock (void)
| Locks a section - If section is busy, return without blocking.
virtual void SPL_API | Unlock (void)
| Unlocks a section.

## Detailed Description

Multiplatform mutex class.

## Constructor & Destructor Documentation

slcMutex::slcMutex | ( | void |  | ) |

Default constructor.

slcMutex::~slcMutex | ( | void |  | ) | `[virtual]`

Default destructor.

## Member Function Documentation

void slcMutex::Lock | ( | void |  | ) | `[virtual]`

Locks a section - If section is already busy then block and wait until it's ready again.

long slcMutex::TryLock | ( | void |  | ) | `[virtual]`

Locks a section - If section is busy, return without blocking.

Returns:
  The method returns one of the following values:

Return values:

  EBUSY | | Section is still locked from another caller.
  0 | | Section is now locked by current call.

< Return busy.

< If 0 object is successfully locked otherwise error, return result.

void slcMutex::Unlock | ( | void |  | ) | `[virtual]`

Unlocks a section.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/libspl/include/spl_mutex.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/libspl/source/spl_mutex.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines