windows-nt/Source/XPSP1/NT/multimedia/directx/dplay/dvoice/dxvutils/bfcsynch.h

31 lines
687 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*==========================================================================
*
* 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