Phoenix
Object-oriented orthogonally persistent operating system
Public Member Functions
RWSpinLock Class Reference

Read/write spin lock. More...

#include <md_lock.h>

List of all members.

Public Member Functions

void ReadLock ()
 Acquire read lock.
void ReadUnlock ()
 Release read lock.
void WriteLock ()
 Acquire write lock.
void WriteUnlock ()
 Release write lock.

Detailed Description

Read/write spin lock.

It allows several simultaneous reads but doesn't allow write simultaneously with another read or write.

Several fields are defined:


Member Function Documentation

void RWSpinLock::ReadLock ( ) [inline]

Acquire read lock.

Several simultaneous read locks can be acquired.

void RWSpinLock::ReadUnlock ( ) [inline]

Release read lock.

void RWSpinLock::WriteLock ( ) [inline]

Acquire write lock.

It can be acquired only exclusively. It will not be acquired after previous write lock released and there are pending read locks.

void RWSpinLock::WriteUnlock ( ) [inline]

Release write lock.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines