PHP Class Thread, ClearSky

Inheritance: extends BaseThread, implements HistoricalObjectI
Afficher le fichier Open project: robske110/ClearSky Class Usage Examples

Méthodes publiques

Méthode Description
getCreatorId ( ) : integer Will return the identity of the Thread that created the referenced Thread
getCurrentThread ( ) : static Will return the instance of currently executing thread
getCurrentThreadId ( ) : integer Will return the identity of the currently executing thread
getThreadId ( ) : integer Will return the identity of the referenced Thread
isJoined ( ) : boolean Tell if the referenced Thread has been joined by another context
isStarted ( ) : boolean Tell if the referenced Thread has been started
join ( ) : boolean Causes the calling context to wait for the referenced Thread to finish executing
start ( integer $options = PTHREADS_INHERIT_ALL ) : boolean Will start a new Thread to execute the implemented run method

Method Details

getCreatorId() public méthode

Will return the identity of the Thread that created the referenced Thread
public getCreatorId ( ) : integer
Résultat integer A numeric identity

getCurrentThread() public static méthode

Will return the instance of currently executing thread
public static getCurrentThread ( ) : static
Résultat static

getCurrentThreadId() public static méthode

Will return the identity of the currently executing thread
public static getCurrentThreadId ( ) : integer
Résultat integer

getThreadId() public méthode

Will return the identity of the referenced Thread
public getThreadId ( ) : integer
Résultat integer

isJoined() public méthode

Tell if the referenced Thread has been joined by another context
public isJoined ( ) : boolean
Résultat boolean A boolean indication of state

isStarted() public méthode

Tell if the referenced Thread has been started
public isStarted ( ) : boolean
Résultat boolean A boolean indication of state

join() public méthode

Causes the calling context to wait for the referenced Thread to finish executing
public join ( ) : boolean
Résultat boolean A boolean indication of state

start() public méthode

Will start a new Thread to execute the implemented run method
public start ( integer $options = PTHREADS_INHERIT_ALL ) : boolean
$options integer An optional mask of inheritance constants, by default PTHREADS_INHERIT_ALL
Résultat boolean A boolean indication of success