This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
src/System.Composition.Convention/src/Microsoft/Internal Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ namespace Microsoft.Internal
11
11
{
12
12
internal sealed class Lock : IDisposable
13
13
{
14
- #if FEATURE_SLIMLOCK
15
14
private readonly ReaderWriterLockSlim _thisLock = new ReaderWriterLockSlim ( LockRecursionPolicy . NoRecursion ) ;
16
15
private int _isDisposed = 0 ;
17
16
public void EnterReadLock ( )
@@ -41,39 +40,5 @@ public void Dispose()
41
40
_thisLock . Dispose ( ) ;
42
41
}
43
42
}
44
-
45
- #else
46
- // ReaderWriterLockSlim is not yet implemented on SilverLight
47
- // Satisfies our requirements until it is implemented
48
- private readonly object _thisLock = new object ( ) ;
49
-
50
- public Lock ( )
51
- {
52
- }
53
-
54
- public void EnterReadLock ( )
55
- {
56
- Monitor . Enter ( _thisLock ) ;
57
- }
58
-
59
- public void EnterWriteLock ( )
60
- {
61
- Monitor . Enter ( _thisLock ) ;
62
- }
63
-
64
- public void ExitReadLock ( )
65
- {
66
- Monitor . Exit ( _thisLock ) ;
67
- }
68
-
69
- public void ExitWriteLock ( )
70
- {
71
- Monitor . Exit ( _thisLock ) ;
72
- }
73
-
74
- public void Dispose ( )
75
- {
76
- }
77
- #endif //FEATURE_SLIMLOCK
78
43
}
79
44
}
You can’t perform that action at this time.
0 commit comments