3 instantiations of Job
Microsoft.TestPlatform.CoreUtilities (3)
Utilities\Job.cs (2)
42
public static Job<TPayload> ShutdownJob =>
new
() { Shutdown = true };
73
return new
Job
<TPayload> { WaitManualResetEvent = waitEvent };
Utilities\JobQueue.cs (1)
149
InternalQueueJob(new
Job
<T>(job, jobSize));
13 references to Job
Microsoft.TestPlatform.CoreUtilities (13)
Utilities\Job.cs (4)
17
/// Initializes a new instance of the <see cref="
Job
{TPayload}"/> class.
32
/// Prevents a default instance of the <see cref="
Job
{TPayload}"/> class from being created.
42
public static
Job
<TPayload> ShutdownJob => new() { Shutdown = true };
69
public static
Job
<TPayload> CreateWaitJob(ManualResetEventSlim waitEvent)
Utilities\JobQueue.cs (9)
36
private readonly Queue<
Job
<T>> _jobsQueue;
124
_jobsQueue = new Queue<
Job
<T>>();
185
var
waitJob =
Job
<T>.CreateWaitJob(waitEvent);
227
InternalQueueJob(
Job
<T>.ShutdownJob);
253
private void InternalQueueJob(
Job
<T> job)
301
List<
Job
<T>> jobs = new();
306
var
job = _jobsQueue.Dequeue();
330
foreach (
var
job in jobs)