eio_busy

(PECL eio >= 0.0.1dev)

eio_busyArtificially increase load. Could be useful in tests, benchmarking

说锟斤拷

eio_busy ( int $delay [, int $pri = EIO_PRI_DEFAULT [, callable $callback = NULL [, mixed $data = NULL ]]] ) : resource

eio_busy() artificially increases load taking delay seconds to execute. May be used for debugging, or benchmarking.

锟斤拷锟斤拷

delay

Delay in seconds

pri

锟斤拷锟斤拷锟斤拷锟斤拷燃锟斤拷锟�EIO_PRI_DEFAULT锟斤拷EIO_PRI_MIN锟斤拷EIO_PRI_MAX 锟斤拷 NULL锟斤拷锟斤拷锟斤拷锟� NULL锟斤拷pri 锟斤拷锟斤拷为 EIO_PRI_DEFAULT锟斤拷

callback

This callback is called when all the group requests are done.

data

Arbitrary variable passed to callback.

锟斤拷锟斤拷值

eio_busy() returns request resource on success or FALSE on error.

锟轿硷拷

  • eio_nop