start-customs

Function

Package: mp

Arguments: &optional name

Used in versions that use the :os-threads multiprocessing model only. The symbol naming this function does not exist in versions that use the non :os-threads model. Conditionalize with #+os-threads.

If non-lisp threads are going to use callback functions to invoke lisp code, then a "customs" process must be running to assign each such thread a lisp process, when the thread first tries to invoke lisp code. start-customs starts such a process. The name argument, if present, must be a valid name argument to make-process; if omitted it defaults to "Customs". Starting more than one customs process is inefficient, but not fatal. start-customs checks to see if a process with the specified name already exists; if so it does nothing. Otherwise start-customs creates a process that waits for non-lisp threads to appear and then calls make-immigrant-process to give them the lisp structure they need to run in the lisp world.

See multiprocessing.htm for general information on multiprocessing in Allegro CL.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.