NextPrevUpTopContentsIndex

setup-for-alien-threads

Function
Summary

Allows LispWorks for Windows to cope with foreign callbacks from unknown threads.

Package

system

Signature

setup-for-alien-threads => result

Values

result

A boolean.

Description

The function setup-for-alien-threads sets up LispWorks for Windows to cope with calls (via foreign callables as defined by fli:define-foreign-callable ) from "alien" threads, that is, threads that the LispWorks image did not start.

Such a setup is done automatically in DLLs on Windows.

result is t if the call performs the setup, or nil if the call does not perform the setup because it was already done.

If a call from an alien thread occurs before setup-for-alien-threads is called, the consequences are undefined.

Note: setup-for-alien-threads is not defined on non-Windows platforms. On Mac OS X, Linux and FreeBSD, foreign code can call into LispWorks in any thread, without special setup.


LispWorks Reference Manual - 20 Jul 2006

NextPrevUpTopContentsIndex