jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ReentrantLock.cs

23 lines
282 B
C#
Raw Normal View History

2017-04-02 00:36:06 +00:00
using System.Threading;
namespace SharpCifs.Util.Sharpen
{
internal class ReentrantLock
{
public void Lock ()
{
Monitor.Enter (this);
}
public bool TryLock ()
{
return Monitor.TryEnter (this);
}
public void Unlock ()
{
Monitor.Exit (this);
}
}
}