base.cpp 377 B

1234567891011121314151617181920212223242526272829303132333435
  1. //#include <windows.h>
  2. #include "pch.h"
  3. #include <base.h>
  4. CBase::CBase()
  5. {
  6. InitializeCriticalSection(&mBaseCritSect);
  7. }
  8. CBase::~CBase()
  9. {
  10. DeleteCriticalSection(&mBaseCritSect);
  11. }
  12. VOID CBase::Lock()
  13. {
  14. EnterCriticalSection(&mBaseCritSect);
  15. }
  16. VOID CBase::Unlock()
  17. {
  18. LeaveCriticalSection(&mBaseCritSect);
  19. }
  20. VOID CBase::operator=(const CBase &Other)
  21. {
  22. }