Properties

$callable

$callable : callable

Type

callable

$state

$state : int

Type

int

$detached

$detached : bool

Type

bool

$runtime

$runtime : \Threadator\Runtime

Type

\Threadator\Runtime

$pid

$pid : int

Type

int

$parentPid

$parentPid : int

Type

int

Methods

setCallable()

setCallable(callable $callable) : $this

Parameters

callable $callable

Returns

$this

getCallable()

getCallable() : callable

Returns

callable

__construct()

__construct(\Threadator\Runtime $runtime)

Parameters

\Threadator\Runtime $runtime

Throws

\RuntimeException

run()

run() : $this

Throws

\RuntimeException

Returns

$this

getRuntime()

getRuntime() : \Threadator\Runtime

Returns

\Threadator\Runtime

getPid()

getPid() : int

Returns

int

getParentPid()

getParentPid() : int

Returns

int

detach()

detach()

Throws

\RuntimeException

isDetached()

isDetached() : bool

Returns

bool

isWaiting()

isWaiting() : bool

Returns

bool

isRunning()

isRunning() : bool

Returns

bool

isJoined()

isJoined() : bool

Returns

bool

isStopped()

isStopped() : bool

Returns

bool

join()

join() : $this

Returns

$this

start()

start() : $this

Throws

\RuntimeException

Returns

$this

stop()

stop() : $this

Throws

\RuntimeException

Returns

$this

_run()

_run() : void

unload()

unload() : void

init()

init() : void

handleSigTerm()

handleSigTerm() : void

_exit()

_exit() : void