Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# IdeThreadLock Class Reference

Thread synchronization handler. More...

`#include <deThread.hpp>`

List of all members.

## Public Member Functions
virtual void | Lock ()=0
virtual void | Unlock ()=0
virtual deBoolean | TryLock (u32 waitTimeInMs)=0
virtual s32 | Release ()=0
## Protected Member Functions
virtual | ~IdeThreadLock ()

## Detailed Description

Thread synchronization handler.

## Constructor & Destructor Documentation

virtual IdeThreadLock::~IdeThreadLock | ( |  | ) | `[inline, protected, virtual]`

## Member Function Documentation

virtual void IdeThreadLock::Lock | ( |  | ) | `[pure virtual]`

| Acquires an exclusive lock in the currently executing thread. This method will block until other threads relinquish the lock. Each Lock or successful TryLock call must be paired with an Unlock call.

virtual s32 IdeThreadLock::Release | ( |  | ) | `[pure virtual]`

| Releases & destroys a lock object. This will block until the current thread can acquire this lock, and will then proceed.

virtual deBoolean IdeThreadLock::TryLock | ( | u32 | waitTimeInMs | ) | `[pure virtual]`

| Attempts to acquire an exclusive lock in the currently executing thread. Each Lock or successful TryLock call must be paired with an Unlock call. Returns: deTRUE if the lock was acquired, deFALSE if another thread holds the lock.

virtual void IdeThreadLock::Unlock | ( |  | ) | `[pure virtual]`

| Relinquishes an exclusive lock, signaling any threads that are waiting for this lock object to be relinquished.

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

- include/deThread.hpp