Swoole\Lock::trylock_read

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

Swoole\Lock::trylock_readTry to lock a read-write lock for reading and return straight away even the lock is not available.

说明

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

参数

此函数没有参数。

返回值

相关文章
php eventbufferevent assigns read write and event status callbacksphp ncurses 函数 do not translate newline and carriage return / line feedphp swoole 函数 get the file description which are ready to read/write or errorphp swoole 函数 write data to a socketphp swoole 函数 select the file descriptions which are ready to read/write or error in the eventloopphp phar start buffering phar write operations do not modify the phar object on diskphp stomp indicates whether or not there is a frame ready to readphp 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 swoole buffer write data to the memory buffer. the memory allocated for the buffer will not be changed.php swoole channel write and push data into swoole channel.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 process write data into the pipe and communicate with the parent process or child processes.php syncreaderwriter waits for a read lock
关注编程学问公众号