mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 12:27:43 +01:00
Merge pull request #1684 from Soreepeong/feature/idtw-cloneable
Add IDalamudTextureWrap.CreateWrapSharingLowLevelResource
This commit is contained in:
commit
8e5a84792e
6 changed files with 153 additions and 32 deletions
12
Dalamud/Utility/IDeferredDisposable.cs
Normal file
12
Dalamud/Utility/IDeferredDisposable.cs
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue