mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7d9bc16437
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1409 21ef857c-d57f-4fe0-8362-d861dc6d29cd
25 lines
777 B
C#
25 lines
777 B
C#
namespace ProcessHacker.Common.Objects
|
|
{
|
|
public interface IReferenceCountedObject
|
|
{
|
|
/// <summary>
|
|
/// Decrements the reference count of the object.
|
|
/// </summary>
|
|
/// <returns>The old reference count.</returns>
|
|
int Dereference();
|
|
|
|
/// <summary>
|
|
/// Decrements the reference count of the object.
|
|
/// </summary>
|
|
/// <param name="managed">Whether to dispose managed resources.</param>
|
|
/// <returns>The old reference count.</returns>
|
|
int Dereference(bool managed);
|
|
|
|
/// <summary>
|
|
/// Increments the reference count of the object.
|
|
/// </summary>
|
|
/// <returns>The old reference count.</returns>
|
|
int Reference();
|
|
}
|
|
}
|