Hi Kashyap,

> In the section about callbacks (
> https://software-lab.de/doc/native.html#funptr) it is not explicitly
> mentioned that the callback (lisp ...)  cannot be called from a different
> thread.

Yes, the docs nowhere mention threads, as they are not an issue in PicoLisp. It
rather uses communicating processes.

You *could* probably use PicoLisp in a threaded program, but it would need
precautions like creating all locally bound symbols in thread-private
namespaces.


> However, since PicoLisp does not have threads, I'd imagine that
> callbacks cannot be called from a different thread. Is that correct
> understanding?

I have not thought about this. Not sure atm what kind of conflicts might show
up.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to