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

NextPrevUpTopContentsIndex

process-property

Function
Summary

Gets and sets a general property for a process.

Package

mp

Signature

process-property indicator &optional process default => result

(setf process-property) value indicator &optional process default => result

Arguments

indicator

A Lisp object.

process

A process.

default

A Lisp object.

Values

result

A property value, or default.

Description

The function process-property gets the value that is associated with indicator for the process process, and (setf process-property) sets this value.

If process is not supplied or is nil, the current process (that is, the result of calling get-current-process) is used.

Notes

In the typical case when only the current process sets the property (even if other processes read it), private properties can be used, and are much faster in SMP LispWorks, because they do not need to deal with parallel setting. See process-private-property.

Example
(process-property 'foo (get-current-process) 'bar) => BAR
(setf (process-property 'foo) 'foo-value)
=> FOO-VALUE (process-property 'foo) => FOO-VALUE
See also

process-private-property
remove-process-property
remove-from-process-property
pushnew-to-process-property


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex