| Allegro CL version 10.1 This page is new in 10.1. | ||||||||||
Arguments: &key active-limit idle-limit idle-timeout name report-start report-end class process-class prime stack-allocation
Create and return a new process-pool instance. The keyword arguments
specify initial values for the corresponding
slots.
*process-pool-default-active-limit*.
process-pool (the
default).
pool-process (the
default).
nil value that is not a number, or
nil. If a positive integer, that number of pool
processes will be created in idle state when the pool is created. If
another non-nil
value, idle-limit processes will be created. If
nil (the default), no processes will be
created.
nil meaning keep forever.
report-start function
or nil. When
non-nil, the report-start function is called
with a single argument, the work-item, when a process-pool-work-item is executed. The function
specified here will be used if the work-item does not have its own
non-nil
report-start value. If you want to run a work-item
with no report-start function, specifying nil
as the report-start argument when creating the
work item (directly with make-process-pool-work-item or as a side effect
of calling process-pool-run)
does not work as that means run this default report-start function. To
have a report-start function that does nothing, define a function that
does nothing and make it the report-start
function for the work-item.
nil. When
non-nil, the report-end function is called
with a three arguments when a process-pool-work-item is executed. The
arguments are the work-item, the list of values returned by the
work-item function, and the error condition if an error was signaled
during the execution of the work-item. The report-end function
specified here will be used if the work-item does not have its own
report-end value. If you want to run a work-item
with no report-end function, specifying nil
as the report-end argument when creating the
work item (directly with make-process-pool-work-item or as a side effect
of calling process-pool-run)
does not work as that means run this default report-end function. To
have a report-end function that does nothing, define a function that
does nothing and make it the report-end
function for the work-item.
See Process pools in multiprocessing.htm for more information on process pools.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page is new in the 10.1 release.
Created 2019.8.20.
| Allegro CL version 10.1 This page is new in 10.1. | ||||||||||