--- q_a/samples/semaphor/readme.txt 2018/08/09 18:29:19 1.1.1.1 +++ q_a/samples/semaphor/readme.txt 2018/08/09 18:29:42 1.1.1.2 @@ -2,7 +2,7 @@ Summary: -The SEMA sample application shows how to control four +The SEMAPHOR sample application shows how to control four threads with a semaphore. It demonstrates this by having four threads competing for the right to draw their color to a rectangle in the center of the window. Access to the @@ -52,21 +52,6 @@ gets to draw the center rectangle with i sleeps for half a second before freeing the semaphore again. The thread then runs through the loop again. -The followin is a list of the Win32 API used in this sample: - - BeginPaint GetClientRect PostQuitMessa TerminateThrea - ge d - CreateSemapho GetDC Rectangle WaitForSingleO - re bject - CreateSolidBr GetLastError RegisterClass wsprintf - ush - CreateThread GetMessage ReleaseDC - CreateWindow GetStockObjec ReleaseSemaph - t ore - DeleteObject LoadCursor SelectObject - DispatchMessa LoadIcon ShowWindow - ge - EndPaint MessageBox Sleep - - +Additional reference words: +CreateSemaphore, WaitForSingleObject, ReleaseSemaphore