windows-nt/Source/XPSP1/NT/multimedia/directx/dplay/dvoice/dxvutils/bfcsynch.h
2020-09-26 16:20:57 +08:00

31 lines
687 B
C++

/*==========================================================================
*
* Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
*
* File: bfcsynch.h
* Content: Declaration of synchronization classes
*
* History:
* Date By Reason
* ==== == ======
* 07/16/99 rodtoll Created
*
***************************************************************************/
#ifndef __BFCSYNCH_H
#define __BFCSYNCH_H
class BFCSingleLock
{
public:
BFCSingleLock( DNCRITICAL_SECTION *cs )
{ m_cs = cs; DNEnterCriticalSection( m_cs ); };
~BFCSingleLock() { DNLeaveCriticalSection( m_cs ); };
void Lock() { };
protected:
DNCRITICAL_SECTION *m_cs;
};
#endif