spawn-threadPortable Threadsthread-alive-psymbol-value-in-threadGoTo Top

symbol-value-in-thread   symbol thread => object, boundp[Function]

Purpose
Return the value of symbol in a thread.

Package   :portable-threads

Module   :portable-threads

Arguments and values

symbol     A symbol
thread     A thread
object     An object
boundp     A generalized boolean

Returns
Two values:

Description
The global symbol value is returned as the first value if no thread-local value is bound.

See also
    spawn-form
    spawn-thread

Examples

  > (symbol-value-in-thread '*x* thread)
  33
  t
  > (symbol-value-in-thread 'pi thread)
  3.141592653589793d0
  t
  > (symbol-value-in-thread '*unbound* thread)
  nil
  nil
  >

Note
On Common Lisp implementations without threads, this function obtains the global symbol value.


The GBBopen Project


spawn-threadPortable Threadsthread-alive-psymbol-value-in-threadGoTo Top