diff --git a/reference/pthreads/pool.xml b/reference/pthreads/pool.xml new file mode 100644 index 0000000000..b8ce9866ff --- /dev/null +++ b/reference/pthreads/pool.xml @@ -0,0 +1,144 @@ + + + + + The Pool class + Pool + + + + +
+ &reftitle.intro; + + A Pool is a container for, and controller of, a number of Worker threads, the number of threads can be adjusted during execution, additionally the Pool provides an easy mechanism to maintain and collect references in the proper way. + +
+ + +
+ &reftitle.classsynopsis; + + + + Pool + + + + + Pool + + + + + Properties + + protected + integer + size + + + protected + array + workers + + + protected + array + work + + + protected + integer + last + + + protected + string + class + + + protected + array + ctor + + + &Methods; + + +
+ +
+ &reftitle.properties; + + + size + + The maximum number of Worker threads allowed in this Pool + + + + workers + + The array of Worker threads for this Pool + + + + work + + The array of Stackables submitted to this Pool for execution + + + + last + + The numeric identifier for the last Worker used by this Pool + + + + workers + + The name of the Worker class for this Pool + + + + workers + + The constructor arguments to be passed by this Pool to new Workers upon construction + + + +
+ + +
+ + &reference.pthreads.entities.pool; + +
+ + +