编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « EventBuffer::drain
  • EventBuffer::expand »
  • PHP Manual
  • EventBuffer
  • 说明

EventBuffer::enableLocking

(PECL event >= 1.2.6-beta)

EventBuffer::enableLocking —

说明

public EventBuffer::enableLocking ( void ) : void

Enable locking on an EventBuffer so that it can safely be used by multiple threads at the same time. When locking is enabled, the lock will be held when callbacks are invoked. This could result in deadlock if you aren't careful. Plan accordingly!

参数

此函数没有参数。

返回值

没有返回值。

参见

  • » Evbuffers and Thread-safety
相关文章
php eventbuffer constructs eventbuffer objectphp eventbuffer copies out specified number of bytes from the front of the bufferphp eventbuffer removes specified number of bytes from the front of the buffer without copying it anywherephp eventbuffer 说明php eventbuffer re enable calls that modify an event bufferphp eventbuffer releases lock acquired by eventbuffer lockphp eventbuffer write contents of the buffer to a file or socketphp 文件上传处理 错误信息说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php newt 函数 说明php swfmovie 说明php swfmovie 说明
关注编程学问公众号
编程学问网 湘ICP备20001732号