Sebastian Sylvan wrote:

>If there was a way to simply defer GC (like you attatch a function to
>an object which can simply deny the GC the right to remove it
>depending on its state) then I wouldn't have to do anything
>significant in the finalizer.

Why not spawn a thread which starts the playback, waits for it to finish, and then exits, and wrap the whole thread in a call to withForeignPtr? Then your finalizer won't be called prematurely.

-- Ben

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to