« Volatile
简介 »
PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境
PHP Manual
进程控制扩展
pht
pht
简介
安装/配置
需求
安装
运行时配置
pht\Thread
— The Thread class
pht\Thread::addClassTask
— Class threading
pht\Thread::addFileTask
— File threading
pht\Thread::addFunctionTask
— Function threading
pht\Thread::join
— Joins a thread
pht\Thread::start
— Starts the new thread
pht\Thread::taskCount
— Gets a thread's task count
pht\Runnable
— The Runnable interface
pht\Runnable::run
— The entry point of a threaded class
pht\HashTable
— The HashTable class
pht\HashTable::lock
— Acquires the hash table's mutex lock
pht\HashTable::size
— Gets the size of the hash table
pht\HashTable::unlock
— Releases the hash table's mutex lock
pht\Vector
— The Vector class
pht\Vector::__construct
— Vector creation
pht\Vector::deleteAt
— Deletes a value in the vector
pht\Vector::insertAt
— Inserts a value into the vector
pht\Vector::lock
— Acquires the vector's mutex lock
pht\Vector::pop
— Pops a value to the vector
pht\Vector::push
— Pushes a value to the vector
pht\Vector::resize
— Resizes a vector
pht\Vector::shift
— Shifts a value from the vector
pht\Vector::size
— Gets the size of the vector
pht\Vector::unlock
— Releases the vector's mutex lock
pht\Vector::unshift
— Unshifts a value to the vector front
pht\Vector::updateAt
— Updates a value in the vector
pht\Queue
— The Queue class
pht\Queue::front
— Returns the first value from a queue
pht\Queue::lock
— Acquires the queue's mutex lock
pht\Queue::pop
— Pops a value off of the front of a queue
pht\Queue::push
— Pushes a value to the end of a queue
pht\Queue::size
— Gets the size of the queue
pht\Queue::unlock
— Releases the queue's mutex lock
pht\AtomicInteger
— The AtomicInteger class
pht\AtomicInteger::__construct
— AtomicInteger creation
pht\AtomicInteger::dec
— Decrements the atomic integer's value by one
pht\AtomicInteger::get
— Gets the atomic integer's value
pht\AtomicInteger::inc
— Increments the atomic integer's value by one
pht\AtomicInteger::lock
— Acquires the atomic integer's mutex lock
pht\AtomicInteger::set
— Sets the atomic integer's value
pht\AtomicInteger::unlock
— Releases the atomic integer's mutex lock
pht\Threaded
— The Threaded interface
pht\Threaded::lock
— Acquires the mutex lock
pht\Threaded::unlock
— Releases the mutex lock