soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SAutoWriteLock Class Reference

Auto-lock class for managing exclusive locks. More...

#include <SRwLock.h>

Inheritance diagram for SAutoWriteLock:
SNoCopyable

Public Member Functions

 SAutoWriteLock (SRwLock *plock)
 Constructor.
 
 ~SAutoWriteLock ()
 Destructor.
 

Detailed Description

Auto-lock class for managing exclusive locks.

This class automatically acquires an exclusive lock upon construction and releases it upon destruction.

Note
This class is non-copyable.

Definition at line 94 of file SRwLock.h.

Constructor & Destructor Documentation

◆ SAutoWriteLock()

SAutoWriteLock::SAutoWriteLock ( SRwLock * plock)
inline

Constructor.

Parameters
plockPointer to the SRwLock object to manage.

Acquires an exclusive lock.

Definition at line 101 of file SRwLock.h.

◆ ~SAutoWriteLock()

SAutoWriteLock::~SAutoWriteLock ( )
inline

Destructor.

Releases the exclusive lock.

Definition at line 109 of file SRwLock.h.


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