Name

mp:process-enable — Start up a task which was not running.

Function

(mp:process-enable process)

process

An object of type mp:process.

Description

The argument to this function should be a process created by mp:make-process, which has a function associated as per mp:process-preset but which is not yet running. After invoking this function a new thread will be created in which the associated function will be executed.

Example

The following is a possible implementation of mp:process-run-function.

(defun process-run-function (process-name process-function &rest args)
  (let ((process (mp:make-process name)))
    (apply #'mp:process-preset process function args)
    (mp:process-enable process)))