Asposecpplib
System::LockContext Class Reference

Guard object implementing C# lock() statement. More...

Public Member Functions

ASPOSECPP_SHARED_API LockContext (Object *lockable)
 Locks object. More...
 
ASPOSECPP_SHARED_API ~LockContext ()
 Unlocks object if not locked yet. More...
 
ASPOSECPP_SHARED_API void unlock ()
 Unlocks object. More...
 

Detailed Description

Guard object implementing C# lock() statement.

Constructor & Destructor Documentation

◆ LockContext()

ASPOSECPP_SHARED_API System::LockContext::LockContext ( Object lockable)

Locks object.

◆ ~LockContext()

ASPOSECPP_SHARED_API System::LockContext::~LockContext ( )

Unlocks object if not locked yet.

Member Function Documentation

◆ unlock()

ASPOSECPP_SHARED_API void System::LockContext::unlock ( )

Unlocks object.