spawn-formPortable Threadssymbol-value-in-threadspawn-threadGoTo Top

spawn-thread   name function &rest args => thread[Function]

Purpose
Spawn a new thread.

Package   :portable-threads

Module   :portable-threads

Arguments and values

name     A string
function     A function designator
args     Arguments to the function
thread     A thread

Returns
The object representing the new thread.

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

See also
    all-threads
    awaken-thread
    current-thread
    hibernate-thread
    kill-thread
    spawn-form
    thread-alive-p
    thread-name
    thread-whostate
    threadp
    run-in-thread
    symbol-value-in-thread

Example

  > (spawn-thread "Sleepy" #'sleep 60)
  #<thread Sleepy>
  >


The GBBopen Project


spawn-formPortable Threadssymbol-value-in-threadspawn-threadGoTo Top