You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
724 B
30 lines
724 B
/*==========================================================================
|
|
*
|
|
* 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 ); };
|
|
|
|
static void Lock() { };
|
|
protected:
|
|
DNCRITICAL_SECTION *m_cs;
|
|
};
|
|
|
|
#endif
|