This method obtains a semaphore token.
Public
virtual OMBoolean wait (long timeout = -1) = 0;
timeout
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.