PHP 클래스 Spork\Fork

파일 보기 프로젝트 열기: kriswallsmith/spork 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

always() 공개 메소드

public always ( $always )

done() 공개 메소드

public done ( $done )

fail() 공개 메소드

public fail ( $fail )

getError() 공개 메소드

public getError ( )

getExitStatus() 공개 메소드

public getExitStatus ( )

getOutput() 공개 메소드

public getOutput ( )

getPid() 공개 메소드

public getPid ( )

getResult() 공개 메소드

public getResult ( )

getState() 공개 메소드

public getState ( )

getStopSignal() 공개 메소드

public getStopSignal ( )

getTermSignal() 공개 메소드

public getTermSignal ( )

isExited() 공개 메소드

public isExited ( )

isSignaled() 공개 메소드

public isSignaled ( )

isStopped() 공개 메소드

public isStopped ( )

isSuccessful() 공개 메소드

public isSuccessful ( )

kill() 공개 메소드

public kill ( $signal = SIGINT )

notify() 공개 메소드

public notify ( )

processWaitStatus() 공개 메소드

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

progress() 공개 메소드

public progress ( $progress )

receive() 공개 메소드

public receive ( )

reject() 공개 메소드

public reject ( )

resolve() 공개 메소드

public resolve ( )

setName() 공개 메소드

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

then() 공개 메소드

public then ( $done, $fail = null )

wait() 공개 메소드

public wait ( $hang = true )