From 211f60bb0a663156fd89388d42898f874516907e Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Thu, 6 Mar 2014 16:36:30 +0000 Subject: [PATCH] moar docs for pool git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332928 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pthreads/book.xml | 10 ++++++++++ reference/pthreads/versions.xml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/reference/pthreads/book.xml b/reference/pthreads/book.xml index d275b56ca8..908f6593b3 100644 --- a/reference/pthreads/book.xml +++ b/reference/pthreads/book.xml @@ -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. + 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. + + + + Pool is a normal PHP object, and so instances should not be shared among contexts. + + + 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. diff --git a/reference/pthreads/versions.xml b/reference/pthreads/versions.xml index 4b41c0af97..18f0fbee3b 100644 --- a/reference/pthreads/versions.xml +++ b/reference/pthreads/versions.xml @@ -59,6 +59,13 @@ + + + + + + +