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.

39 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: seekptr.cxx
  7. //
  8. // Contents: Seek pointer non-inline implementation
  9. //
  10. // History: 11-Aug-92 PhilipLa Created.
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <exphead.cxx>
  14. #pragma hdrstop
  15. #include <seekptr.hxx>
  16. //+--------------------------------------------------------------
  17. //
  18. // Member: CSeekPointer::Release, public
  19. //
  20. // Synopsis: Decrements _cReferences and delete's on noref
  21. //
  22. // History: 30-Apr-92 DrewB Created
  23. //
  24. //---------------------------------------------------------------
  25. void CSeekPointer::vRelease(void)
  26. {
  27. LONG lRet;
  28. olDebugOut((DEB_ITRACE, "In CSeekPointer::Release()\n"));
  29. olAssert(_cReferences > 0);
  30. lRet = InterlockedDecrement(&_cReferences);
  31. if (lRet == 0)
  32. delete this;
  33. olDebugOut((DEB_ITRACE, "Out CSeekPointer::Release()\n"));
  34. }