![]() |
TerraLib 4.1
|
Multiplatform mutex class. More...
#include <spl_mutex.h>
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. | |
Multiplatform mutex class.
| slcMutex::slcMutex | ( | void | ) |
Default constructor.
| slcMutex::~slcMutex | ( | void | ) | [virtual] |
Default destructor.
| 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.
| 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.