ForeignPtr and -threaded

PHO phonohawk at ps.sakura.ne.jp
Mon Jul 23 06:07:46 EDT 2007


From: Ian Lynagh <igloo at earth.li>
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20070723/27e10b59/attachment.bin


More information about the Glasgow-haskell-users mailing list