File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
NHibernate.Test/NHSpecificTest Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Fixture
15
15
[ Test ]
16
16
public void GetTypeWithLenShouldBeThreadSafe ( )
17
17
{
18
- Lock sync = new Lock ( ) ;
18
+ object sync = new object ( ) ;
19
19
List < Exception > exceptions = new List < Exception > ( ) ;
20
20
21
21
ManualResetEvent startEvent = new ManualResetEvent ( false ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected override void OnTearDown()
45
45
[ Test ]
46
46
public void HqlIsThreadsafe_UsingThreads ( )
47
47
{
48
- Lock sync = new Lock ( ) ;
48
+ object sync = new object ( ) ;
49
49
List < int > results = new List < int > ( ) ;
50
50
List < Exception > exceptions = new List < Exception > ( ) ;
51
51
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ namespace NHibernate.Cache
6
6
{
7
7
class SyncCacheLock : ICacheLock
8
8
{
9
- private readonly MonitorLock _monitorLock ;
9
+ private readonly InternalLock _internalLock ;
10
10
11
- class MonitorLock : IDisposable
11
+ class InternalLock : IDisposable
12
12
{
13
13
private readonly Lock _lockObj = new Lock ( ) ;
14
14
@@ -26,7 +26,7 @@ public void Dispose()
26
26
27
27
public SyncCacheLock ( )
28
28
{
29
- _monitorLock = new ( ) ;
29
+ _internalLock = new ( ) ;
30
30
}
31
31
32
32
public void Dispose ( )
@@ -35,12 +35,12 @@ public void Dispose()
35
35
36
36
public IDisposable ReadLock ( )
37
37
{
38
- return _monitorLock . Lock ( ) ;
38
+ return _internalLock . Lock ( ) ;
39
39
}
40
40
41
41
public IDisposable WriteLock ( )
42
42
{
43
- return _monitorLock . Lock ( ) ;
43
+ return _internalLock . Lock ( ) ;
44
44
}
45
45
46
46
public Task < IDisposable > ReadLockAsync ( )
You can’t perform that action at this time.
0 commit comments