etqw-sdk/source/idlib/threading/Lock.cpp

44 lines
623 B
C++
Raw Permalink Normal View History

2008-05-29 00:00:00 +00:00
// Copyright (C) 2007 Id Software, Inc.
//
#include "../precompiled.h"
#pragma hdrstop
#include "../sys/threading/SysLock.h"
/*
=============
sdLock::sdLock
=============
*/
sdLock::sdLock() {
sdSysLock::Init( handle );
}
/*
=============
sdLock:~:sdLock
=============
*/
sdLock::~sdLock() {
sdSysLock::Destroy( handle );
}
/*
=============
sdLock::Acquire
=============
*/
bool sdLock::Acquire( bool blocking ) {
return sdSysLock::Acquire( handle, blocking );
}
/*
=============
sdLock::Release
=============
*/
void sdLock::Release() {
sdSysLock::Release( handle );
}