40 lines
1 KiB
C++
40 lines
1 KiB
C++
|
//+-------------------------------------------------------------------------
|
||
|
//
|
||
|
// 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"));
|
||
|
}
|
||
|
|