diff --git a/Errata.md b/Errata.md index 0bad05a88..131fe5633 100644 --- a/Errata.md +++ b/Errata.md @@ -36,4 +36,5 @@ Zhou Jing | 23 | 1105 | Change `Length = 10` in listing 23.20 to `Length = 12` t Zhou Jing | 18 | 926-927 | Change 'LastName' references to be 'FirstName' in paragraphs Jinhang He | 5 | 255 | Edit listing 5.20 to used `image[index]` for the second print statement Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribute to properties and fields" from "Restrict the attribute to properties and methods" -Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection" \ No newline at end of file +Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection" +Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiting" to "Application shutting down" \ No newline at end of file diff --git a/src/Chapter22.Tests/Listing22.10.Tests.cs b/src/Chapter22.Tests/Listing22.10.Tests.cs index ba1f4de41..4f1098374 100644 --- a/src/Chapter22.Tests/Listing22.10.Tests.cs +++ b/src/Chapter22.Tests/Listing22.10.Tests.cs @@ -10,9 +10,9 @@ public void MainTest() const string expected = @"Application started.... Starting task.... DoWork() started.... - Waiting while thread executes... +Waiting while task executes... DoWork() ending.... -Thread completed +Task completed Application shutting down...."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( diff --git a/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs b/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs index fcbd1269f..77968425c 100644 --- a/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs +++ b/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs @@ -42,10 +42,10 @@ public static void Main() // Block until DoWork() has started _DoWorkSignaledResetEvent.Wait(); Console.WriteLine( - " Waiting while thread executes..."); + "Waiting while task executes..."); _MainSignaledResetEvent.Set(); task.Wait(); - Console.WriteLine("Thread completed"); + Console.WriteLine("Task completed"); Console.WriteLine( "Application shutting down...."); }