Lisp HUG Maillist Archive

Lispworks 5 Personal and setup-for-alien-threads


I'm trying to get audio for SDL working in Lispworks for Windows (works just 
fine in SBCL and CLISP). The SDL library spawns a new thread to service audio 
and this new thread requires a callback into the Lisp image to fill the audio 
buffer.

The Lispworks documentation here;

http://www.lispworks.com/documentation/lw51/LWUG/html/lwuser-238.htm#pgfId-8

states that I need to call setup-for-alien-threads in order for this to work, 
but this function does not seem to be available in the latest Personal edition. 
Is setup-for-alien-threads available in Lispworks 5 Personal? 

Thanks,
- Luke


Re: Lispworks 5 Personal and setup-for-alien-threads

On Thu, 3 Apr 2008 20:02:02 +0000 (UTC), Luke Crook <luke@balooga.com> wrote:

> I'm trying to get audio for SDL working in Lispworks for Windows
> (works just fine in SBCL and CLISP). The SDL library spawns a new
> thread to service audio and this new thread requires a callback into
> the Lisp image to fill the audio buffer.
>
> The Lispworks documentation here;
>
> http://www.lispworks.com/documentation/lw51/LWUG/html/lwuser-238.htm#pgfId-8
>
> states that I need to call setup-for-alien-threads in order for this
> to work, but this function does not seem to be available in the
> latest Personal edition.  Is setup-for-alien-threads available in
> Lispworks 5 Personal?

Are you sure you're not confusing 5.0 and 5.1?  The function was
removed in 5.1 and it's no longer necessary to call it.


Re: Lispworks 5 Personal and setup-for-alien-threads

Luke Crook <luke <at> balooga.com> writes:

> Is setup-for-alien-threads available in Lispworks 5 Personal? 

Duh. (sys:setup-for-alien-threads) works.

- Luke




Updated at: 2020-12-10 08:43 UTC