RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Threading::AtomicLock Class Reference

using atomic types to synchronize memory accesses among different threads More...

Public Member Functions

RLIB_INLINE void Lock () const
 Acquires an exclusive lock. More...
 
RLIB_INLINE bool TryLock () const
 Attempts to acquire an exclusive lock. More...
 
RLIB_INLINE void UnLock () const
 Releases an exclusive lock. More...
 
RLIB_INLINE AtomicLock (_In_ DWORD)
 
RLIB_INLINE void Enter () const
 Acquires an exclusive lock. More...
 
RLIB_INLINE bool TryEnter () const
 Attempts to acquire an exclusive lock. More...
 
RLIB_INLINE void Exit () const
 Releases an exclusive lock. More...
 

Protected Attributes

volatile long l
 

Detailed Description

using atomic types to synchronize memory accesses among different threads

Member Function Documentation

RLIB_INLINE void System::Threading::AtomicLock::Enter ( ) const
inline

Acquires an exclusive lock.

RLIB_INLINE void System::Threading::AtomicLock::Exit ( ) const
inline

Releases an exclusive lock.

RLIB_INLINE void System::Threading::AtomicLock::Lock ( ) const
inline

Acquires an exclusive lock.

RLIB_INLINE bool System::Threading::AtomicLock::TryEnter ( ) const
inline

Attempts to acquire an exclusive lock.

RLIB_INLINE bool System::Threading::AtomicLock::TryLock ( ) const
inline

Attempts to acquire an exclusive lock.

RLIB_INLINE void System::Threading::AtomicLock::UnLock ( ) const
inline

Releases an exclusive lock.


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