(PECL wincache >= 1.1.0)
Acquires an exclusive lock on a given key
bool wincache_lock ( string $key [, bool $isglobal = false ] )
Obtains an exclusive lock on a given key. The execution of the current script will be blocked until the lock can be obtained. Once the lock is obtained, the other scripts that try to request the lock by using the same key will be blocked, until the current script releases the lock by using w