Gets and sets a general property for a process.
mp
process-property indicator &optional process default => value
setf (process-property indicator &optional process default) value => value
indicator⇩ |
A Lisp object. |
process⇩ |
A process. |
default⇩ |
A Lisp object. |
value⇩ |
A Lisp object. |
value⇩ |
A Lisp object. |
The accessor process-property
gets or sets the value that is associated with indicator for the process process.
If process is not supplied or is nil
, the current process (that is, the result of calling get-current-process) is used.
If indicator is not associated with a value in the properties, process-property
returns default.
(setf process-property)
overwrites any existing value for indicator to value and default is ignored.
The default value of default is nil
.
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.
(process-property 'foo (get-current-process) 'bar)
=> BAR
(setf (process-property 'foo) 'foo-value) => FOO-VALUE
(process-property 'foo)
=> FOO-VALUE
process-private-property
remove-process-property
remove-from-process-property
pushnew-to-process-property
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51