Property | Type | Description | |
---|---|---|---|
$active_threads | array | Active processor threads. |
Property | Type | Description | |
---|---|---|---|
$_history | boolean | array | Signal history. |
Method | Description | |
---|---|---|
__construct ( ) : void | Starts the processor. | |
after ( |
Registers a function to interrupt the signal stack after a signal emits. | |
anaylze_runtime ( SIG_Awake $sig_awake ) : void | Analyzes the processor runtime and shutdowns when no activity is detected. | |
are_processes_exhausted ( |
Determine if the given database processes are exhausted. | |
before ( |
Registers a function to interrupt the signal stack before a signal emits. | |
clean ( boolean $history = false ) : void | Cleans any exhausted signals from the processor. | |
current_signal ( integer $offset = 1 ) : object | Returns the current signal in execution. | |
delete_process ( |
Removes a signal process. | |
delete_signal ( |
Delete a signal from the processor. | |
emit ( |
Emits a signal. | |
erase_history ( ) : void | Cleans out the signal history. | |
erase_signal_history ( string | object $signal ) : void | Erases any history of a signal. | |
evaluate_signals ( |
Perform the evaluation for all registered complex signals. | |
find_signal_database ( |
Finds an installed signals processes database. | |
flush ( ) : void | Flush | |
get_database ( |
Returns the signal database for the given signal. | |
get_routine ( ) : null | object | Returns the current routine object. | |
has_signal_exhausted ( |
Determines if the given signal has exhausted. | |
listen ( |
Listen | |
register_signal ( |
Registers a signal into the processor. | |
set_signal_history ( boolean $flag ) : void | Sets the flag for storing the signal history. | |
shutdown ( ) : void | Sends the processor the shutdown signal. | |
signal ( |
Creates a new signal process. | |
signal_history ( ) : array | Returns the signal history. | |
wait_loop ( ) : void | Waits for the next signal to occur. |
Method | Description | |
---|---|---|
_signal_interrupt ( |
Registers a function to interrupt the signal stack before or after a signal emits. |
Method | Description | |
---|---|---|
_execute ( |
Executes a database of processes. | |
_get_int_database ( $interrupt ) : object | Returns the interruption storage database. | |
_interrupt ( |
Process signal interuption functions. | |
_process_exec ( |
Executes a callable processor function. | |
_processes_execute ( |
Executes a processes database. | |
_routine ( ) : boolean | array | Runs the signal routine for the processor loop. |
protected _signal_interrupt ( |
||
$signal | ||
$process | Process to execute | |
return | boolean | True|False false is failure |
public anaylze_runtime ( SIG_Awake $sig_awake ) : void | ||
$sig_awake | SIG_Awake | SIG_Awake |
return | void |
public are_processes_exhausted ( |
||
$database | ||
return | boolean |
public current_signal ( integer $offset = 1 ) : object | ||
$offset | integer | In memory hierarchy offset +/-. |
return | object |
public delete_process ( |
||
$signal | Signal instance or signal. | |
$process | Process instance or identifier. | |
return | boolean |
public delete_signal ( |
||
$signal | Signal to delete. | |
$history | boolean | Erase any history of the signal. |
return | void |
public erase_history ( ) : void | ||
return | void |
public evaluate_signals ( |
||
$signal | Signal to evaluate | |
return | array | null | [[[signal, queue], eval_return]] |
public find_signal_database ( |
||
$signal | SIG | |
return | null | object | \XPSPL\database\Signals |
public get_database ( |
||
$signal | ||
return | array |
public get_routine ( ) : null | object | ||
return | null | object |
public has_signal_exhausted ( |
||
$signal | \XPSPL\SIG | |
return | boolean |
public register_signal ( |
||
$signal | Signal | |
return | boolean | object | false|XPSPL\database\Processes |
public set_signal_history ( boolean $flag ) : void | ||
$flag | boolean | |
return | void |
public signal_history ( ) : array | ||
return | array |
public array $active_threads | ||
return | array |