Package threads |
Details |
Procedures: |
-------------------------------------------------------------------------------- Shut up shop. Remaining work placed in the queue before the call of ClosePool will be executed before closure. Fails if all work has not been done.
-------------------------------------------------------------------------------- Add a task (described by a procedure plus parameters) to the list of tasks to be executed by (one of) the pool of worker threads.
-------------------------------------------------------------------------------- Fail if there is work in progress, or waiting to be done.
-------------------------------------------------------------------------------- Construct a pool of n worker threads.
-------------------------------------------------------------------------------- dummy procedure used to request thread (self) termination. NB. If called directly, causes an "emergency stop"
-------------------------------------------------------------------------------- work thread: repeatedly get a task, which is a list [proc, param1, param2 ....] and call the procedure with the supplied parameters.
Global variables: |