You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -317,7 +317,7 @@ namespace System.Threading.Tasks.Tests
|
||||
conTask.Wait();
|
||||
Assert.True(conTask.Result, "The concurrenttask when executed successfully should have returned true");
|
||||
|
||||
//Now scehdule a exclusive task that is blocked(thereby preventing other concurrent tasks to finish)
|
||||
//Now scehdule an exclusive task that is blocked(thereby preventing other concurrent tasks to finish)
|
||||
Task<bool> exclusiveTask = writers.StartNew<bool>(() => { blockMainThreadEvent.Set(); blockExclusiveTaskEvent.WaitOne(); return true; });
|
||||
|
||||
//With exclusive task in execution mode, schedule a number of concurrent tasks and ensure they are not executed
|
||||
@@ -328,7 +328,7 @@ namespace System.Threading.Tasks.Tests
|
||||
foreach (Task task in taskList)
|
||||
{
|
||||
bool wasTaskStarted = (task.Status != TaskStatus.Running) && (task.Status != TaskStatus.RanToCompletion);
|
||||
Assert.True(wasTaskStarted, "Concurrent tasks should not be executed when a exclusive task is getting executed");
|
||||
Assert.True(wasTaskStarted, "Concurrent tasks should not be executed when an exclusive task is getting executed");
|
||||
}
|
||||
|
||||
blockExclusiveTaskEvent.Set();
|
||||
|
Reference in New Issue
Block a user