Swoole\Lock::trylock

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

Swoole\Lock::trylockTry to acquire the lock and return straight away even the lock is not available.

说明

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

参数

此函数没有参数。

返回值

相关文章
php swoole the swoole lock classphp ncurses 函数 do not translate newline and carriage return / line feedphp sqlite 函数 finds whether or not more rows are availablephp sqlite 函数 returns whether or not a previous row is availablephp swoole 函数 exit the eventloop only available at the client sidephp 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 append the string or binary data at the end of the memory buffer and return the new size of memory allocated.php swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.php swoole event exit the eventloop only available at client side.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.
关注编程学问公众号