// RuntimeForStatic base library | C+- (SysRoutine) | Author: Sergei Y.Kitáev
#include "Precompiled.h"
#include "SharedIncludes.h"
namespace RuntimeForStatic {
//==================================================================================================

$Lock::$Lock($A,PCRITICAL_SECTION pCriticalSection)
{
   $$VERIFY_POINTER_ARG( pCriticalSection );
   ::EnterCriticalSection( _CriticalSectionPtr_ = pCriticalSection );
}

$Lock::~$Lock()
{
   ::LeaveCriticalSection( _CriticalSectionPtr_ );
}

//==================================================================================================
} // RuntimeForStatic
