PHP 클래스 Thread, ClearSky

상속: extends BaseThread, implements HistoricalObjectI
파일 보기 프로젝트 열기: robske110/ClearSky 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

getCreatorId() 공개 메소드

Will return the identity of the Thread that created the referenced Thread
public getCreatorId ( ) : integer
리턴 integer A numeric identity

getCurrentThread() 공개 정적인 메소드

Will return the instance of currently executing thread
public static getCurrentThread ( ) : static
리턴 static

getCurrentThreadId() 공개 정적인 메소드

Will return the identity of the currently executing thread
public static getCurrentThreadId ( ) : integer
리턴 integer

getThreadId() 공개 메소드

Will return the identity of the referenced Thread
public getThreadId ( ) : integer
리턴 integer

isJoined() 공개 메소드

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

isStarted() 공개 메소드

Tell if the referenced Thread has been started
public isStarted ( ) : boolean
리턴 boolean A boolean indication of state

join() 공개 메소드

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

start() 공개 메소드

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
리턴 boolean A boolean indication of success