forked from JeringTech/Javascript.NodeJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonitorService.cs
More file actions
34 lines (30 loc) · 776 Bytes
/
Copy pathMonitorService.cs
File metadata and controls
34 lines (30 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Threading;
namespace Jering.Javascript.NodeJS
{
/// <summary>
/// Default implementation of <see cref="IMonitorService"/>.
/// </summary>
public class MonitorService : IMonitorService
{
/// <inheritdoc />
public void TryEnter(object obj, ref bool lockTaken)
{
Monitor.TryEnter(obj, ref lockTaken);
}
/// <inheritdoc />
public void Exit(object obj)
{
Monitor.Exit(obj);
}
/// <inheritdoc />
public void Enter(object obj, ref bool lockTaken)
{
Monitor.Enter(obj, ref lockTaken);
}
/// <inheritdoc />
public void Enter(object obj)
{
Monitor.Enter(obj);
}
}
}