All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

get-process Function

Summary

Returns a process corresponding to a supplied designator.

Package

mp

Signature

get-process process-designator => process

Arguments
process-designator
A mp:process, a string, a stack-group, a function, a symbol or a fixnum.
Values
process
A mp:process.
Description

The function get-process returns a process according to the supplied process-designator, which is interpreted as follows:

mp:process
Return it.
A string
Find the first process (highest priority) with matching name. Process names are compared by string=.
A stack-group
Return the process of the stack-group.
A function
Return the first process that has process-designator as its function (that is, the third argument of process-run-function).
A symbol
First search for a process using the symbol name as a string, and (if that fails) then search using the symbol as a function.
A fixnum
Find a process for which process-designator is its unique id. The unique id of the current process can be found by (sys:current-thread-unique-id).

result is nil if multiprocessing is off.

See also

find-process-from-name


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51