Mutex 锟斤拷

(PECL pthreads < 3.0.0)

锟斤拷锟�

Warning

pthreads v3 锟斤拷锟窖撅拷锟斤拷 Mutex 锟斤拷锟狡筹拷锟斤拷

Mutex 锟斤拷锟叫帮拷锟斤拷一些直锟接凤拷锟斤拷 Posix 锟斤拷锟斤拷锟斤拷锟侥撅拷态锟斤拷锟斤拷

锟斤拷摘要

Mutex {
/* 锟斤拷锟斤拷 */
final public static create ([ bool $lock ] ) : int
final public static destroy ( int $mutex ) : bool
final public static lock ( int $mutex ) : bool
final public static trylock ( int $mutex ) : bool
final public static unlock ( int $mutex [, bool $destroy ] ) : bool
}

Table of Contents

  • Mutex::create — 锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷
  • Mutex::destroy — 锟斤拷锟劫伙拷锟斤拷锟斤拷
  • Mutex::lock — 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • Mutex::trylock — 锟斤拷锟皆革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • Mutex::unlock — 锟酵放伙拷锟斤拷锟斤拷锟较碉拷锟斤拷