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 enchant 函数 will return a list of values if any of those pre conditions are not metphp gupnp 函数 set whether or not root device is availablephp ncurses 函数 do not translate newline and carriage return / line feedphp sqlite 函数 finds whether or not more rows are availablephp solrquery whether or not to return raw charactersphp 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 release the memory to os which is not used by the memory buffer.php swoole connection iterator return current connection entry.php swoole connection iterator return key of the current connection.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 lock release the lock.php swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.
关注编程学问公众号