ICP  1
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
VisaAccessLock Class Reference

Public Member Functions

 VisaAccessLock ()
 
 ~VisaAccessLock ()
 

Static Public Member Functions

static void lockExclusive ()
 
static void unlockExclusive ()
 

Static Private Attributes

static Poco::RWLock m_interface_lock
 
static const DWORD INVALID_THREAD_ID = 0
 
static DWORD m_locker_id = VisaAccessLock::INVALID_THREAD_ID
 
static LONG m_count = 0
 

Detailed Description

Definition at line 8 of file nivisa.cpp.

Constructor & Destructor Documentation

VisaAccessLock::VisaAccessLock ( )
inline

Definition at line 15 of file nivisa.cpp.

References INVALID_THREAD_ID, m_interface_lock, and m_locker_id.

VisaAccessLock::~VisaAccessLock ( )
inline

Definition at line 27 of file nivisa.cpp.

References m_interface_lock, and m_locker_id.

Member Function Documentation

static void VisaAccessLock::lockExclusive ( )
inlinestatic

Definition at line 34 of file nivisa.cpp.

References INVALID_THREAD_ID, m_count, m_interface_lock, and m_locker_id.

Referenced by NIVisa::lockInterface().

static void VisaAccessLock::unlockExclusive ( )
inlinestatic

Definition at line 50 of file nivisa.cpp.

References INVALID_THREAD_ID, m_count, m_interface_lock, and m_locker_id.

Referenced by NIVisa::unlockInterface().

Member Data Documentation

const DWORD VisaAccessLock::INVALID_THREAD_ID = 0
staticprivate

Definition at line 11 of file nivisa.cpp.

Referenced by lockExclusive(), unlockExclusive(), and VisaAccessLock().

LONG VisaAccessLock::m_count = 0
staticprivate

Definition at line 13 of file nivisa.cpp.

Referenced by lockExclusive(), and unlockExclusive().

Poco::RWLock VisaAccessLock::m_interface_lock
staticprivate

Definition at line 10 of file nivisa.cpp.

Referenced by lockExclusive(), unlockExclusive(), VisaAccessLock(), and ~VisaAccessLock().

DWORD VisaAccessLock::m_locker_id = VisaAccessLock::INVALID_THREAD_ID
staticprivate

Definition at line 12 of file nivisa.cpp.

Referenced by lockExclusive(), unlockExclusive(), VisaAccessLock(), and ~VisaAccessLock().


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