3 instantiations of Barrier
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
909
var barrier = new
Barrier
(NumThreads);
941
var barrier = new
Barrier
(NumThreads);
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Sorting.cs (1)
136
sharedBarriers[i][j] = new
Barrier
(2);
38 references to Barrier
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
909
var
barrier = new Barrier(NumThreads);
941
var
barrier = new Barrier(NumThreads);
netstandard (1)
netstandard.cs (1)
2068
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.
Barrier
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
913
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.
Barrier
))]
System.Linq.Parallel (4)
System\Linq\Parallel\Utils\Sorting.cs (4)
46
private readonly
Barrier
[][] _sharedBarriers; // A matrix of barriers used for synchronizing during merges.
60
GrowingArray<TKey>[] sharedkeys, TInputOutput[][] sharedValues,
Barrier
[][] sharedBarriers)
121
Barrier
[][] sharedBarriers = JaggedArray<
Barrier
>.Allocate(phaseCount, degreeOfParallelism);
System.Threading (30)
System\Threading\Barrier.cs (30)
22
/// The exception that is thrown when the post-phase action of a <see cref="
Barrier
"/> fails.
84
/// has arrived at the <see cref="
Barrier
"/> in a given phase and implicitly waits for all others to
85
/// arrive. The same <see cref="
Barrier
"/> can be used for multiple phases.
88
/// All public and protected members of <see cref="
Barrier
"/> are thread-safe and may be used
90
/// must only be used when all other operations on the <see cref="
Barrier
"/> have
142
private readonly Action<
Barrier
>? _postPhaseAction;
195
/// Initializes a new instance of the <see cref="
Barrier
"/> class.
206
/// Initializes a new instance of the <see cref="
Barrier
"/> class.
219
public Barrier(int participantCount, Action<
Barrier
>? postPhaseAction)
274
/// Notifies the <see cref="
Barrier
"/> that there will be an additional participant.
303
/// Notifies the <see cref="
Barrier
"/> that there will be additional participants.
391
/// Notifies the <see cref="
Barrier
"/> that there will be one less participant.
408
/// Notifies the <see cref="
Barrier
"/> that there will be fewer participants.
473
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
483
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
493
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
508
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
524
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
542
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
552
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
574
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
590
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
606
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
637
/// of a <see cref="
Barrier
"/> after all participating threads have called SignalAndWait.</exception>
826
var
thisBarrier = (
Barrier
)obj!;
915
/// Releases all resources used by the current instance of <see cref="
Barrier
"/>.
921
/// Unlike most of the members of <see cref="
Barrier
"/>, Dispose is not thread-safe and may not be
937
/// <see cref="
Barrier
"/>, and optionally releases the managed resources.
942
/// Unlike most of the members of <see cref="
Barrier
"/>, Dispose is not thread-safe and may not be