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.

32 lines
833 B

  1. // Gemplus (C) 1999
  2. // Version 1.0
  3. // Author: Sergey Ivanov
  4. // Date of creation - 18.05.1999
  5. // Change log:
  6. //
  7. #ifndef LOCK_INT
  8. #define LOCK_INT
  9. #include "generic.h"
  10. #pragma PAGEDCODE
  11. class CLock
  12. {
  13. public:
  14. NTSTATUS m_Status;
  15. SAFE_DESTRUCTORS();
  16. virtual VOID dispose(){self_delete();};
  17. protected:
  18. CLock(){};
  19. virtual ~CLock(){};
  20. public:
  21. virtual VOID initializeSpinLock(PKSPIN_LOCK SpinLock) {};
  22. virtual VOID acquireSpinLock(PKSPIN_LOCK SpinLock, PKIRQL oldIrql) {};
  23. virtual VOID releaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL oldIrql) {};
  24. virtual VOID acquireCancelSpinLock(PKIRQL Irql) {};
  25. virtual VOID releaseCancelSpinLock(KIRQL Irql) {};
  26. virtual LONG interlockedIncrement(IN PLONG Addend) {return 0;};
  27. virtual LONG interlockedDecrement(IN PLONG Addend) {return 0;};
  28. };
  29. #endif//CLock