swoole_lock->trylock_read
加锁。此方法与
lock_read
相同,但是非阻塞的。
$lock
->
trylock_read();
调用会立即返回,必须检测返回值以确定是否拿到了锁。