3 instantiations of Barrier
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
911
var barrier = new
Barrier
(NumThreads);
943
var barrier = new
Barrier
(NumThreads);
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Sorting.cs (1)
136
sharedBarriers[i][j] = new
Barrier
(2);
32 references to Barrier
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
911
var
barrier = new Barrier(NumThreads);
943
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 (24)
System\Threading\Barrier.cs (24)
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.
406
/// Notifies the <see cref="
Barrier
"/> that there will be fewer participants.
469
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
487
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
516
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
542
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
578
/// Signals that a participant has reached the <see cref="
Barrier
"/> and waits for all other
810
var
thisBarrier = (
Barrier
)obj!;
899
/// Releases all resources used by the current instance of <see cref="
Barrier
"/>.
905
/// Unlike most of the members of <see cref="
Barrier
"/>, Dispose is not thread-safe and may not be
921
/// <see cref="
Barrier
"/>, and optionally releases the managed resources.
926
/// Unlike most of the members of <see cref="
Barrier
"/>, Dispose is not thread-safe and may not be