Thread

php\lang\Thread

Class Thread

Constants


constant MAX_PRIORITY
constant MIN_PRIORITY
constant NORM_PRIORITY

Methods


__construct($runnable, $env = null, $group = null)
Параметры:
getId()
Результат:int
getName()
Результат:string
setName($value)
Параметры:
  • $valuestring
getGroup()
Результат:php\lang\ThreadGroup
isDaemon()
Результат:bool
setDaemon($value)
Параметры:
  • $valuebool
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.

Параметры:
  • $millisint
  • $nanosint
static doYield
static sleep($millis, $nanos = 0)

Causes the currently executing thread to sleep (temporarily cease execution)

Параметры:
  • $millisint
  • $nanosint
static getActiveCount
Результат:int
static current

Get current thread

Результат:php\lang\Thread