svn: /phpdoc/en/trunk/reference/pthreads/ book.xml versions.xml

From: Date: Thu, 06 Mar 2014 16:36:30 +0000
Subject: svn: /phpdoc/en/trunk/reference/pthreads/ book.xml versions.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12176@lists.php.net to get a copy of this message
krakjoe Thu, 06 Mar 2014 16:36:30 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=332928 Log: moar docs for pool Changed paths: U phpdoc/en/trunk/reference/pthreads/book.xml U phpdoc/en/trunk/reference/pthreads/versions.xml Modified: phpdoc/en/trunk/reference/pthreads/book.xml =================================================================== --- phpdoc/en/trunk/reference/pthreads/book.xml 2014-03-06 16:34:50 UTC (rev 332927) +++ phpdoc/en/trunk/reference/pthreads/book.xml 2014-03-06 16:36:30 UTC (rev 332928) @@ -31,6 +31,16 @@ Additionally, any context with a reference to the Stackable can read, write and execute its methods before during and after execution. </para> <para> + A Pool: + A Pool of Worker threads can be used to distribute Stackables among programmer declared Worker classes. The Pool class included implements this functionality and takes care of referencing in a sane manner. + Introduced in v1.0.0, the Pool implementation is the easiest and most efficient way of using multiple threads. + </para> + <caution> + <para> + Pool is a normal PHP object, and so instances should not be shared among contexts. + </para> + </caution> + <para> Synchronization: All of the objects that pthreads creates have built in synchronization in the ( familiar to java programmers ) form of ::wait and ::notify. Calling ::wait on an object will cause the context to wait for another context to call ::notify on the same object. Modified: phpdoc/en/trunk/reference/pthreads/versions.xml =================================================================== --- phpdoc/en/trunk/reference/pthreads/versions.xml 2014-03-06 16:34:50 UTC (rev 332927) +++ phpdoc/en/trunk/reference/pthreads/versions.xml 2014-03-06 16:36:30 UTC (rev 332928) @@ -59,6 +59,13 @@ <function name='stackable::merge' from='PECL pthreads &gt;= 0.45'/> <function name='stackable::chunk' from='PECL pthreads &gt;= 0.45'/> + <function name='pool::__construct' from='PECL pthreads &gt;= 1.0.0'/> + <function name='pool::resize' from='PECL pthreads &gt;= 1.0.0'/> + <function name='pool::submit' from='PECL pthreads &gt;= 1.0.0'/> + <function name='pool::collect' from='PECL pthreads &gt;= 1.0.0'/> + <function name='pool::shutdown' from='PECL pthreads &gt;= 1.0.0'/> + <function name='pool::__destruct' from='PECL pthreads &gt;= 1.0.0'/> + <function name='mutex' from='PECL pthreads &gt;= 0.34'/> <function name='mutex::create' from='PECL pthreads &gt;= 0.34'/> <function name='mutex::lock' from='PECL pthreads &gt;= 0.34'/>

« previous php.doc.cvs (#12176) next »