Thread¶
-
php\lang\Thread
Class Thread
Constants
Methods
__construct
($runnable, $env = null, $group = null)¶
Параметры:
- $runnable –
callable
- $env – php\lang\Environment
- $group – php\lang\ThreadGroup
getId
()¶
Результат: int
getName
()¶
Результат: string
setName
($value)¶
Параметры:
- $value –
string
getGroup
()¶
Результат: php\lang\ThreadGroup
isDaemon
()¶
Результат: bool
setDaemon
($value)¶
Параметры:
- $value –
bool
isInterrupted
()¶
Результат: bool
isAlive
()¶
Результат: bool
start
()¶
run
()¶
interrupt
()¶
join
($millis = 0, $nanos = 0)¶Waits at most $millis milliseconds plus $nanos nanoseconds for this thread to die.
Параметры:
- $millis –
int
- $nanos –
int
- static
doYield
¶
- static
sleep
($millis, $nanos = 0)¶Causes the currently executing thread to sleep (temporarily cease execution)
Параметры:
- $millis –
int
- $nanos –
int
- static
getActiveCount
¶
Результат: int
- static
current
¶Get current thread
Результат: php\lang\Thread