This method obtains a semaphore
token.
Signaturevirtual OMBoolean wait (long timeout = -1) = 0;
Parameterstimeout
The number of ticks to lock on a semaphore
before timing out. The possible values are < 0 (wait indefinitely);
0 (do not wait), and > 0 (the number of ticks to wait).
For Solaris systems, a value of > 0 means to wait indefinitely.