Skip to content

Commit ce443e9

Browse files
Use new lock primitive (#1005)
* Use new lock primitive * Fix Git Actions PR warnings * Simplify Synchronize implementation
1 parent 1f02f36 commit ce443e9

File tree

139 files changed

+170
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+170
-238
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ dotnet_diagnostic.SA1113.severity = error
361361
dotnet_diagnostic.SA1114.severity = none
362362
dotnet_diagnostic.SA1115.severity = error
363363
dotnet_diagnostic.SA1116.severity = none
364-
dotnet_diagnostic.SA1117.severity = error
364+
dotnet_diagnostic.SA1117.severity = none
365365
dotnet_diagnostic.SA1118.severity = none
366366
dotnet_diagnostic.SA1119.severity = error
367367
dotnet_diagnostic.SA1120.severity = error
@@ -380,7 +380,7 @@ dotnet_diagnostic.SA1133.severity = error
380380
dotnet_diagnostic.SA1134.severity = error
381381
dotnet_diagnostic.SA1135.severity = error
382382
dotnet_diagnostic.SA1136.severity = error
383-
dotnet_diagnostic.SA1137.severity = error
383+
dotnet_diagnostic.SA1137.severity = none
384384
dotnet_diagnostic.SA1139.severity = error
385385
dotnet_diagnostic.SA1200.severity = none
386386
dotnet_diagnostic.SA1201.severity = none

src/DynamicData/Aggregation/SumEx.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Roland Pheasant licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for full license information.
44

5-
using DynamicData.Kernel;
6-
75
namespace DynamicData.Aggregation;
86

97
/// <summary>

src/DynamicData/Alias/ObservableCacheAlias.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
using System.Reactive;
66

7-
using DynamicData.Kernel;
8-
97
namespace DynamicData.Alias;
108

119
/// <summary>

src/DynamicData/Binding/ExpressionBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.ComponentModel;
66
using System.Linq.Expressions;
77
using System.Reactive;
8-
using System.Reactive.Disposables;
98
using System.Reactive.Linq;
109
using System.Reflection;
1110

src/DynamicData/Binding/ObservableCollectionEx.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Collections.Specialized;
77
using System.Reactive;
88
using System.Reactive.Linq;
9-
using DynamicData.Kernel;
109

1110
namespace DynamicData.Binding;
1211

src/DynamicData/Binding/SortAndBind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public SortAndBind(IObservable<IChangeSet<TObject, TKey>> source,
6565
comparerChanged = comparerChanged.ObserveOn(scheduler);
6666
}
6767

68-
var locker = new object();
68+
var locker = InternalEx.NewLock();
6969
SortApplicator? sortApplicator = null;
7070

7171
// Create a new sort applicator each time.

src/DynamicData/Cache/CacheChangeSetEx.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Roland Pheasant licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for full license information.
44

5-
using DynamicData.Kernel;
6-
75
namespace DynamicData.Cache;
86

97
internal static class CacheChangeSetEx

src/DynamicData/Cache/Change.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Roland Pheasant licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for full license information.
44

5-
using DynamicData.Kernel;
6-
75
// ReSharper disable once CheckNamespace
86
namespace DynamicData;
97

src/DynamicData/Cache/ChangeAwareCache.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// See the LICENSE file in the project root for full license information.
44

55
using DynamicData.Cache;
6-
using DynamicData.Kernel;
76

87
// ReSharper disable once CheckNamespace
98
namespace DynamicData;

src/DynamicData/Cache/IGrouping.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Roland Pheasant licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for full license information.
44

5-
using DynamicData.Kernel;
6-
75
// ReSharper disable once CheckNamespace
86
namespace DynamicData;
97

0 commit comments

Comments
 (0)