Свойство | Тип | Описание | |
---|---|---|---|
$thread_vars |
Свойство | Тип | Описание | |
---|---|---|---|
$_callable | The callable that will execute. | ||
$_exhaustion | integer | null | Process exhaustion. | |
$_priority | integer | Process priority. | |
$_threads | boolean | Threads enabled for this process. |
Метод | Описание | |
---|---|---|
__construct ( mixed $callable = null, integer $exhaust = XPSPL_PROCESS_DEFAULT_EXHAUST, null | integer $priority = XPSPL_PROCESS_DEFAULT_PRIORITY ) : void | Constructs a new process object. | |
__toString ( ) : string | Return a string representation of this database. | |
decrement_exhaust ( ) : void | Decrements the exhaustion counter. | |
enable_threads ( ) : void | Enable threads for this process. | |
exhaustion ( ) : integer | Returns count until process becomes exhausted | |
get_function ( ) : closure | array | Returns the function for the process. | |
get_priority ( ) : integer | Returns the priority of the process. | |
get_thread ( $signal = null ) | Returns the thread to run this process. | |
is_exhausted ( ) : boolean | Determines if the process has exhausted. | |
set_exhaust ( integer $rate ) : void | Sets the process exhaust rate. | |
set_priority ( integer $priority ) : void | Sets the process priority. | |
threads_enabled ( ) : boolean | Returns if threads are enabled for this process. |
public __construct ( mixed $callable = null, integer $exhaust = XPSPL_PROCESS_DEFAULT_EXHAUST, null | integer $priority = XPSPL_PROCESS_DEFAULT_PRIORITY ) : void | ||
$callable | mixed | A callable php variable. |
$exhaust | integer | Count to set process exhaustion. |
$priority | null | integer | Priority of the process. |
Результат | void |
public __toString ( ) : string | ||
Результат | string |
final public decrement_exhaust ( ) : void | ||
Результат | void |
final public enable_threads ( ) : void | ||
Результат | void |
final public exhaustion ( ) : integer | ||
Результат | integer |
final public get_function ( ) : closure | array | ||
Результат | closure | array |
final public get_priority ( ) : integer | ||
Результат | integer |
public get_thread ( $signal = null ) |
final public is_exhausted ( ) : boolean | ||
Результат | boolean |
final public set_exhaust ( integer $rate ) : void | ||
$rate | integer | Exhaust rate |
Результат | void |
final public set_priority ( integer $priority ) : void | ||
$priority | integer | Integer Priority |
Результат | void |
public threads_enabled ( ) : boolean | ||
Результат | boolean |
protected bool $_threads | ||
Результат | boolean |