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 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 gearmanworker give the worker an identifier so it can be tracked when asking gearmand for the list of available workersphp 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 pharfileinfo uncompresses the current phar entry within the phar if it is compressedphp solrquery set if the query will be boosted by the interesting term relevancephp 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 http client check if the http connection is connected.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.php swoole table check if a row is existed by $row key.
关注编程学问公众号