Semaphore.Signal Method

Call Signal to obtain a lock on a resource. When you obtain a lock, you can use the resource without fear that another thread will try to use it simultaneously.

Syntax

# Notes

If the call succeeds, this function returns immediately and you code continues to execute. If the lock is not available, then the thread that called this method will wait until the lock becomes available. When the call returns, you will have the lock, but you may have to wait until the lock becomes available. When you are finished using the resource, call the Release method to give it back to the Semaphore.