thread-alive-pPortable Threadsthread-whostatethread-nameGoTo Top

thread-name   thread => name-string[Function]

Purpose
Return the name of a thread.

Setf syntax

(setf (thread-name   thread) name-string) => name-string

Package   :portable-threads

Module   :portable-threads

Arguments and values

thread     A thread
name-string     A string

Returns
The name of thread.

Errors
Threads (multiprocessing) is not supported on the Common Lisp implementation.

See also
    spawn-form
    spawn-thread

Examples

  > (thread-name thread)
  "Initial"
  > (setf (thread-name thread) "Version 2")
  "Version 2"
  > (thread-name thread)
  "Version 2"
  >

Note
Digitool's Macintosh Common Lisp does not support changing the thread name via setf.


The GBBopen Project


thread-alive-pPortable Threadsthread-whostatethread-nameGoTo Top