编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « pht\Threaded
  • pht\Threaded::unlock »
  • PHP Manual
  • pht\Threaded
  • Acquires the mutex lock

pht\Threaded::lock

(PECL pht >= 0.0.1)

pht\Threaded::lock — Acquires the mutex lock

说明

public pht\Threaded::lock ( void ) : void

This method will acquire the mutex lock associated with the given class (either a pht\HashTable, pht\Queue, pht\Vector, or pht\AtomicInteger).

参数

此函数没有参数。

返回值

No return value.

相关文章
php pht the threaded interfacephp eventbuffer acquires a lock on bufferphp db++ 函数 give up write lock on relationphp wincache 函数 acquires an exclusive lock on a given keyphp pht atomicinteger decrements the atomic integer s value by onephp pht atomicinteger acquires the atomic integer s mutex lockphp pht atomicinteger releases the atomic integer s mutex lockphp pht hashtable acquires the hash table s mutex lockphp pht hashtable releases the hash table s mutex lockphp pht queue acquires the queue s mutex lockphp pht queue releases the queue s mutex lockphp pht runnable the entry point of a threaded classphp pht thread class threadingphp pht threaded acquires the mutex lockphp pht threaded releases the mutex lockphp pht vector acquires the vector s mutex lockphp pht vector releases the vector s mutex lockphp swoole lock try to acquire the lock. it will block if the lock is not available.php syncreaderwriter waits for a read lockphp threaded 操作
关注编程学问公众号
编程学问网 湘ICP备20001732号