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 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 mongocursor checks if there are results that have not yet been sent from the databasephp 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 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.php swoole table count the rows in the table or count all the elements in the table if $mode = 1.php swoole timer check if a timer is existed.
关注编程学问公众号