From: Ian Lynagh <[EMAIL PROTECTED]>
Subject: Re: ForeignPtr and -threaded
Date: Mon, 23 Jul 2007 09:22:01 +0100

> That's a documentation bug. In the HEAD it says:
>
> newForeignPtr :: FinalizerPtr a -> Ptr a -> IO (ForeignPtr a)
> -- ^Turns a plain memory reference into a foreign pointer, and
> -- associates a finaliser with the reference.  The finaliser will be executed
> -- after the last reference to the foreign object is dropped.  Note that there
> -- is no guarantee on how soon the finaliser is executed after the last
> -- reference was dropped; this depends on the details of the Haskell storage
> -- manager.  Indeed, there is no guarantee that the finalizer is executed at
> -- all; a program may exit with finalizers outstanding.  (This is true
> -- of GHC, other implementations may give stronger guarantees).

Uh, ok... Thank you for your information.

_______________________________________________________
 - PHO -                          http://ccm.sherry.jp/
OpenPGP public key: 1024D/1A86EF72
Fpr: 5F3E 5B5F 535C CE27 8254  4D1A 14E7 9CA7 1A86 EF72

Attachment: pgpsI6uFWa8TT.pgp
Description: PGP signature

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to