On 22 November 2012 12:11, Ciprian Teodorov <[email protected]> wrote: > Hi Igor, > > What is the extent to which callbacks are currently supported in NB? > > On my machine (macos10.6) they do not seem to work properly. The quick sort > test crashes the VM. > hmm. should work fine. Make sure you using updated VM.
> What are the limitations of the current implementation? the limitation is multithreading. callback should be called in same thread as VM. another limitation is that callback should be called only during execution of some primitive, or to be more precise. it is only related to interrupt/event handling of VM: no callbacks allowed during interrupt/event handling. but i will get to that once will have a code to check that (like making own callback to handle events from OS) -- Best regards, Igor Stasenko.
