Source code of Windows XP (NT5)
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.0 KiB

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: seekptr.cxx
//
// Contents: Seek pointer non-inline implementation
//
// History: 11-Aug-92 PhilipLa Created.
//
//--------------------------------------------------------------------------
#include <exphead.cxx>
#pragma hdrstop
#include <seekptr.hxx>
//+--------------------------------------------------------------
//
// Member: CSeekPointer::Release, public
//
// Synopsis: Decrements _cReferences and delete's on noref
//
// History: 30-Apr-92 DrewB Created
//
//---------------------------------------------------------------
void CSeekPointer::vRelease(void)
{
LONG lRet;
olDebugOut((DEB_ITRACE, "In CSeekPointer::Release()\n"));
olAssert(_cReferences > 0);
lRet = InterlockedDecrement(&_cReferences);
if (lRet == 0)
delete this;
olDebugOut((DEB_ITRACE, "Out CSeekPointer::Release()\n"));
}