Windows NT 4.0 source code leak
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
893 B

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: seekptr.cxx
//
// Contents: Seek pointer non-inline implementation
//
//--------------------------------------------------------------------------
#include <exphead.cxx>
#include <seekptr.hxx>
//+--------------------------------------------------------------
//
// Member: CSeekPointer::Release, public
//
// Synopsis: Decrements _cReferences and delete's on noref
//
//---------------------------------------------------------------
void CSeekPointer::vRelease(void)
{
olDebugOut((DEB_TRACE,"In CSeekPointer::Release()\n"));
olAssert(_cReferences > 0);
AtomicDec(&_cReferences);
if (_cReferences == 0)
delete this;
olDebugOut((DEB_TRACE,"Out CSeekPointer::Release()\n"));
}