mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-01 20:02:52 +01:00
merge common implementations and server implementations
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user