[Q][VM] mulithreaded ?
Ned Konz
ned at bike-nomad.com
Sat Jul 19 17:56:56 UTC 2003
On Saturday 19 July 2003 09:23 am, Martin Drautzburg wrote:
> Is it true that
>
> o in order to access an existing shared library I need to either
> create a new primitive (named or numbered) or use the FFI
> framework.
No.
You could also use OSProcess and open a pipeline to an external
program that uses the shared library.
> o the VM is not multithreaded, i.e. squeak will be frozen while the
> call is being executed.
Yes.
> What can I do if I have a library function that does not return
> instantly ? Would it be okay to create a thread in a wrapper C code
Yes.
You should then signal a Semaphore so that the Squeak Process can wake
back up.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|