Unlock the server and allow other server threads to resume execution.
A boolean value which specifies if the server was unlocked. A return value of true specifies that the server was unlocked, and the threads being managed by the server have resumed normal execution. A return value of false indicates that the server could not be unlocked, typically because a potential deadlock was detected.
The Unlock method releases the lock on the server and allows any blocked threads to resume execution. Only one server may be locked at any one time, and only the thread which established the lock can unlock the server.
Every time the Lock method is called, an internal lock counter is incremented, and the lock will not be released until the lock count drops to zero. This means that each call to the Lock method must be matched by an equal number of calls to the Unlock method. Failure to do so will result in the server becoming non-responsive as it remains in a locked state.
The program should always check the return value from this method, and should never assume that the lock has been released. If a potential deadlock situation is detected, this method will fail and return a value of false.
The IsLocked property can be used to determine if the server has been locked.