]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/semaphor.tex
fixed 2 bugs in 2 lines of wxFileSelector example code
[wxWidgets.git] / docs / latex / wx / semaphor.tex
index 9691e18c0d78d6f8a283e3bb7c9904091e6e3543..335a399597540a2df3f43d1b0ac32b2ccf9d7ce9 100644 (file)
@@ -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.
 
 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
 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
@@ -80,5 +80,5 @@ 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
 \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
+semaphore was acquired and {\tt FALSE} if the timeout has elapsed