Scieneer Common Lisp 1.3.9 online documentation

thread:make-task-queue &key maximum-length maximum-threads enabled-p timeout priority-levels[Function]

Create and return a thread:task-queue object. Functional tasks may be queued by thread:queue-task. The queue may have a number of priority-levels which are used to prioritize the tasks, and the default is just one priority level. When a maximum-length is specified, thread:queue-task will refuse to queue more tasks once this limit is reached. When enabled-p the queued tasks are executed by a pool of threads created as needed until and up to the maximum-threads limit if any. Threads created to process the pool will wait for new work up to the given timeout if any. When the queue is disabled tasks are not queued and a new thread is created to execute each task.