Leaked source code of windows server 2003
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

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: bfcsynch.h
  6. * Content: Declaration of synchronization classes
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 07/16/99 rodtoll Created
  12. *
  13. ***************************************************************************/
  14. #ifndef __BFCSYNCH_H
  15. #define __BFCSYNCH_H
  16. class BFCSingleLock
  17. {
  18. public:
  19. BFCSingleLock( DNCRITICAL_SECTION *cs )
  20. { m_cs = cs; DNEnterCriticalSection( m_cs ); };
  21. ~BFCSingleLock() { DNLeaveCriticalSection( m_cs ); };
  22. static void Lock() { };
  23. protected:
  24. DNCRITICAL_SECTION *m_cs;
  25. };
  26. #endif