namespace Wabbajack.Common.CSP { public interface Handler { /// /// Returns true if this handler has a callback, must work without a lock /// bool IsActive { get; } /// /// Returns true if this handler may be blocked, otherwise it must not block /// bool IsBlockable { get; } /// /// A unique id for lock aquisition order, 0 if no lock /// uint LockId { get; } /// /// Commit to fulfilling its end of the transfer, returns cb, must be called within a lock /// /// A callback T Commit(); } }