From e45b808aa82a86b40b477c3f4a2021c335b5f5ed Mon Sep 17 00:00:00 2001 From: Daniel Kochmanski Date: Wed, 11 Oct 2017 10:51:44 +0200 Subject: [PATCH] help: add documentation for posix threads (process module) --- src/doc/help.lsp | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/doc/help.lsp b/src/doc/help.lsp index 2f60d9d87..4188a6471 100644 --- a/src/doc/help.lsp +++ b/src/doc/help.lsp @@ -3257,6 +3257,60 @@ Outputs STRING to STREAM. Returns STRING.") (docfun zerop function (number) " Returns T if the arg is zero; NIL otherwise.") +;;; ---------------------------------------------------------------------- +;;; Multi Processing (POSIX Threads) + +#+threads +(progn + (docfun mp:all-processes function () " +Returns a list of all running processes.") + + (docfun mp:make-process function (&key name) " +Allocates new process.") + + (docfun mp:process-yield function () " +Causes current process to yield the control.") + + (docfun mp:exit-process function () " +Exits current process.") + + (docfun mp:process-active-p function (process) " +Returns T if the process is active; NIL otherwise.") + + (docfun mp:process-enable function (process) " +Starts a process. If process is already enabled signals error.") + + (docfun mp:interrupt-process function (process function) " +Interrupts active PROCESS to call FUNCTION. When FUNCTION +finishes normal normal execution is resumed.") + + (docfun mp:process-kill function (process) " +Exits running PROCESS. If PROCESS is inactive signals error.") + + (docfun mp:process-suspend function (process) " +Stops running PROCESS. If PROCESS is inactive signals error.") + + (docfun mp:process-suspend function (process) " +Resumes running PROCESS. If PROCESS is inactive signals error.") + + (docfun mp:process-name function (process) " +Returns PROCESS name assigned on MP:MAKE-PROCESS call.") + + (docfun mp:process-preset function (process function &rest args) " +Initializes a process. When process is enabled it will call FUNCTION +with ARGS.") + + (docfun mp:process-whostate function (process) " +Reserved for future use. Returns empty string.") + + (docfun mp:process-join function (process) " +Waits until process stops its execution.") + + (docfun mp:process-run-function function (name function &rest args) " +Equivalent to creating a process with MP:MAKE-PROCESS, presetting it +with MP:PROCESS-PRESET and starting with MP:PROCESS-ENABLE. Returns +created process.")) + #|| ;;; ---------------------------------------------------------------------- ;;; System Builder Tools