Merge pull request #1684 from Soreepeong/feature/idtw-cloneable

Add IDalamudTextureWrap.CreateWrapSharingLowLevelResource
This commit is contained in:
goat 2024-02-27 19:43:21 +01:00 committed by GitHub
commit 8e5a84792e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 153 additions and 32 deletions

View file

@ -0,0 +1,12 @@
namespace Dalamud.Utility;
/// <summary>
/// An extension of <see cref="IDisposable"/> which makes <see cref="IDisposable.Dispose"/> queue
/// <see cref="RealDispose"/> to be called at a later time.
/// </summary>
internal interface IDeferredDisposable : IDisposable
{
/// <summary>Actually dispose the object.</summary>
/// <remarks>Not to be called from the code that uses the end object.</remarks>
void RealDispose();
}