System::LockContext Class Reference

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

#include "system/details/lock_context.h"

Public Member Functions

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

Detailed Description

Guard object implementing C# lock() statement.

Constructor & Destructor Documentation

◆ LockContext()

System::LockContext::LockContext ( Object lockable)

Locks object.

◆ ~LockContext()

System::LockContext::~LockContext ( )

Unlocks object if not locked yet.

Member Function Documentation

◆ unlock()

void System::LockContext::unlock ( )

Unlocks object.