PHP 클래스 XPSPL\SIG_Routine
A SIG_Routine object indicates to the processor a routine that must be run.
Each routine is ran at the beginning of the loop.
It allows for giving the processor the following information.
- Signals to emit
- How to idle until the next loop
SIG_Routines are designed for signals that will need to idle the processor
to wait for emitting in the future.
파일 보기
프로젝트 열기: prggmr/xpspl
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
get_idle ( ) : object |
Returns the idle object for this routine. |
|
idle ( Processor $processor ) |
Runs the routines idle function. |
|
routine ( Routine $routine ) : void |
Runs the routine calculation. |
|
set_idle ( Idle $idle ) : object |
Sets the idle object for this routine. |
|
메소드 상세
Returns the idle object for this routine.
This method was added in v4.0.0 as a means for the processor to
communicate to the routine to begin idling.
This only provides a transport layer for going from the processor into
the signal.
final public idle ( Processor $processor ) |
$processor |
Processor |
|
The method is provided a single routine object for providing the
processor information.
abstract public routine ( Routine $routine ) : void |
$routine |
Routine |
Processor routine. |
리턴 |
void |
|
Sets the idle object for this routine.
프로퍼티 상세
\XPSPL\Idle Object to idle the processor.
protected object $_idle |
리턴 |
object |
|