X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be8098689121d2352751c51005c133797d77ecea..250b589f71b10fbb1457725897de20ea6d06a1ca:/docs/latex/wx/semaphor.tex diff --git a/docs/latex/wx/semaphor.tex b/docs/latex/wx/semaphor.tex index 31938286cc..335a399597 100644 --- a/docs/latex/wx/semaphor.tex +++ b/docs/latex/wx/semaphor.tex @@ -20,7 +20,7 @@ decrements the counter. As soon as it reaches $0$, any subsequent calls to counter becomes strictly positive again as the result of calling \helpref{Post}{wxsemaphorepost} which increments the counter. -In general, the semaphores are useful to restict access to a shared resource +In general, the semaphores are useful to restrict access to a shared resource which can only be accessed by some fixed number of clients at once. For example, when modeling a hotel reservation system a semaphore with the counter equal to the total number of available rooms could be created. Each time a room @@ -79,6 +79,6 @@ and then decrement it and return. \func{bool}{Wait}{\param{unsigned long }{timeout\_millis}} -Same as the version above, but with a timeout limit: returns {\tt TRUE| if the -semaphore was acquired and {\tt FALSE} if the timeout has ellapsed +Same as the version above, but with a timeout limit: returns {\tt TRUE} if the +semaphore was acquired and {\tt FALSE} if the timeout has elapsed