PHP Class Spork\Fork

显示文件 Open project: kriswallsmith/spork Class Usage Examples

Public Methods

Method Description
__construct ( $pid, SharedMemory $shm, $debug = false )
always ( $always )
done ( $done )
fail ( $fail )
getError ( )
getExitStatus ( )
getOutput ( )
getPid ( )
getResult ( )
getState ( )
getStopSignal ( )
getTermSignal ( )
isExited ( )
isSignaled ( )
isStopped ( )
isSuccessful ( )
kill ( $signal = SIGINT )
notify ( )
processWaitStatus ( $status ) Processes a status value retrieved while waiting for this fork to exit.
progress ( $progress )
receive ( )
reject ( )
resolve ( )
setName ( $name ) Assign a name to the current fork (useful for debugging).
then ( $done, $fail = null )
wait ( $hang = true )

Method Details

__construct() public method

public __construct ( $pid, SharedMemory $shm, $debug = false )
$shm SharedMemory

always() public method

public always ( $always )

done() public method

public done ( $done )

fail() public method

public fail ( $fail )

getError() public method

public getError ( )

getExitStatus() public method

public getExitStatus ( )

getOutput() public method

public getOutput ( )

getPid() public method

public getPid ( )

getResult() public method

public getResult ( )

getState() public method

public getState ( )

getStopSignal() public method

public getStopSignal ( )

getTermSignal() public method

public getTermSignal ( )

isExited() public method

public isExited ( )

isSignaled() public method

public isSignaled ( )

isStopped() public method

public isStopped ( )

isSuccessful() public method

public isSuccessful ( )

kill() public method

public kill ( $signal = SIGINT )

notify() public method

public notify ( )

processWaitStatus() public method

Processes a status value retrieved while waiting for this fork to exit.
public processWaitStatus ( $status )

progress() public method

public progress ( $progress )

receive() public method

public receive ( )

reject() public method

public reject ( )

resolve() public method

public resolve ( )

setName() public method

Assign a name to the current fork (useful for debugging).
public setName ( $name )

then() public method

public then ( $done, $fail = null )

wait() public method

public wait ( $hang = true )