Skip to content

Commit

Permalink
fix: Fix ulong not supported in Tnterlocked in older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 1, 2024
1 parent f7590c6 commit 22e82f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Uno.Threading;
internal sealed class AsyncLock
{
private readonly SemaphoreSlim _semaphore = new(1, 1);
private ulong _handleId;
private long _handleId;

/// <summary>
/// Acquires the lock, then provides a disposable to release it.
Expand All @@ -42,7 +42,7 @@ public async ValueTask<Handle> LockAsync(CancellationToken ct)
return new Handle(this, _handleId);
}

public record struct Handle(AsyncLock Lock, ulong Id) : IDisposable
public record struct Handle(AsyncLock Lock, long Id) : IDisposable
{
public void Dispose()
{
Expand Down

0 comments on commit 22e82f8

Please sign in to comment.