TerraLib 4.1
SPL::slcMutex Class Reference

Multiplatform mutex class. More...

#include <spl_mutex.h>

Inheritance diagram for SPL::slcMutex:
SPL::slaPluginServer SPL::slcPluginArgs SPL::slcPluginInfo SPL::slcPluginServer SPL::slcPluginServer SPL::slcPluginServer

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines