|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
A read-write lock. More...
#include <e32cmn.h>
Public Types | |
| enum | TReadWriteLockPriority { EWriterPriority , EAlternatePriority , EReaderPriority } |
| enum | TReadWriteLockClientCategoryLimit { EReadWriteLockClientCategoryLimit = KMaxTUint16 } |
Public Member Functions | |
| RReadWriteLock () | |
| Default constructor. | |
| IMPORT_C TInt | CreateLocal (TReadWriteLockPriority aPriority=EWriterPriority) |
| IMPORT_C void | Close () |
| Panic condition: EReadWriteLockStillPending if there are any outstanding clients or pending clients. | |
| IMPORT_C void | ReadLock () |
| Panic condition: EReadWriteLockTooManyClients if the resulting number of readers or pending readers exceeds EReadWriteLockClientCategoryLimit. | |
| IMPORT_C void | WriteLock () |
| Panic condition: EReadWriteLockTooManyClients if the resulting number of pending writers exceeds EReadWriteLockClientCategoryLimit. | |
| IMPORT_C TBool | TryReadLock () |
| Panic condition: EReadWriteLockTooManyClients if the resulting number of readers exceeds EReadWriteLockClientCategoryLimit. | |
| IMPORT_C TBool | TryWriteLock () |
| Ask for a write lock without blocking. | |
| IMPORT_C TBool | TryUpgradeReadLock () |
| IMPORT_C void | DowngradeWriteLock () |
| IMPORT_C void | Unlock () |
A read-write lock.
This is a lock for co-ordinating readers and writers to shared resources. It is designed to allow multiple concurrent readers. It is not a kernel side object and so does not inherit from RHandleBase.
|
inline |
Default constructor.
(generated from Symbian Developer Library)
| IMPORT_C void RReadWriteLock::Close | ( | ) |
Panic condition: EReadWriteLockStillPending if there are any outstanding clients or pending clients.
(generated from Symbian Developer Library)
| IMPORT_C TInt RReadWriteLock::CreateLocal | ( | TReadWriteLockPriority | aPriority = EWriterPriority | ) |
| aPriority | Type of priority to use - see RReadWriteLockPriority::TReadWriteLockPriority |
Panic condition: EReadWriteLockInvalidPriority if aPriority is not valid.
(generated from Symbian Developer Library)
| IMPORT_C void RReadWriteLock::DowngradeWriteLock | ( | ) |
Panic condition: EReadWriteLockBadLockState if the lock is not currently held
(generated from Symbian Developer Library)
| IMPORT_C void RReadWriteLock::ReadLock | ( | ) |
Panic condition: EReadWriteLockTooManyClients if the resulting number of readers or pending readers exceeds EReadWriteLockClientCategoryLimit.
(generated from Symbian Developer Library)
| IMPORT_C TBool RReadWriteLock::TryReadLock | ( | ) |
Panic condition: EReadWriteLockTooManyClients if the resulting number of readers exceeds EReadWriteLockClientCategoryLimit.
(generated from Symbian Developer Library)
| IMPORT_C TBool RReadWriteLock::TryUpgradeReadLock | ( | ) |
Panic condition: EReadWriteLockBadLockState if the read lock is not currently held
(generated from Symbian Developer Library)
| IMPORT_C TBool RReadWriteLock::TryWriteLock | ( | ) |
| IMPORT_C void RReadWriteLock::Unlock | ( | ) |
Panic condition: EReadWriteLockBadLockState if the lock is not currently held
(generated from Symbian Developer Library)
| IMPORT_C void RReadWriteLock::WriteLock | ( | ) |
Panic condition: EReadWriteLockTooManyClients if the resulting number of pending writers exceeds EReadWriteLockClientCategoryLimit.
(generated from Symbian Developer Library)