Swoole\Lock::lock

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Lock::lockTry to acquire the lock. It will block if the lock is not available.

说明

public Swoole\Lock::lock ( void ) : void

参数

此函数没有参数。

返回值

相关文章
php eio 函数 calls linux syncfs syscall if availablephp enchant 函数 will return a list of values if any of those pre conditions are not metphp sqlite 函数 opens an sqlite database and create the database if it does not existphp sqlite 函数 opens a persistent handle to an sqlite database and create the database if it does not existphp gearmanclient send data to all job servers to see if they echo it back deprecated php mongocollection creates an index on the specified field s if it does not already existphp mongocollection creates an index on the specified field s if it does not already existphp swffont returns the ascent of the font or 0 if not availablephp swffont returns the descent of the font or 0 if not availablephp swffont returns the leading of the font or 0 if not availablephp swftext returns the ascent of the current font at its current size or 0 if not availablephp swftext returns the descent of the current font at its current size or 0 if not availablephp swftext returns the leading of the current font at its current size or 0 if not availablephp swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.php swoole lock construct a memory lock.php swoole lock destory a swoole memory lock.php swoole lock lock a read write lock for reading.php swoole lock try to acquire the lock. it will block if the lock is not available.php swoole lock try to lock a read write lock for reading and return straight away even the lock is not available.php swoole lock try to acquire the lock and return straight away even the lock is not available.
关注编程学问公众号