caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] GC, Anonymous Functions, and C
@ 2004-12-17 21:55 Jonathan Roewen
  2004-12-17 22:56 ` Richard Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jonathan Roewen @ 2004-12-17 21:55 UTC (permalink / raw)
  To: caml-list

Hi,

When passing an anonymous ocaml function to a C function, is it safe
to store that value in an array, and then call it later at an abitrary
time, or will the GC reclaim it? And if so, what should be done to
stop the GC from doing so?

Basically, we're trying to do interrupt handling from OCaml, and need
to store the anonymous functions somewhere for the IDT to jump into,
to provide a little context for the problem.

Regards,

Jonathan Roewen


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-17 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 21:55 [Caml-list] GC, Anonymous Functions, and C Jonathan Roewen
2004-12-17 22:56 ` Richard Jones
2004-12-17 23:05 ` David Brown
2004-12-17 23:09 ` Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).