* Ask for a more efficient way to deallocate memory
@ 2007-12-09 21:25 Fabrice.Pardo
0 siblings, 0 replies; only message in thread
From: Fabrice.Pardo @ 2007-12-09 21:25 UTC (permalink / raw)
To: caml-list
Hello,
As the function
Unix.opendir returns a value,
we can expect that Unix.closedir will be automatically
called when
Calling Unix.opendir too many times
I'm looking for a more efficient code than this one
let safe_opendir path =
let _ = Gc.major ()
and d = Unix.opendir path
in Gc.finalise Unix.closedir d
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-09 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-09 21:25 Ask for a more efficient way to deallocate memory Fabrice.Pardo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox