[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 22/28] libxl: ocaml: event management

On Tue, 2013-04-23 at 17:50 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH 22/28] libxl: ocaml: event management"):
> > On Tue, 2013-04-23 at 17:30 +0100, Rob Hoes wrote:
> > > You can keep the value alive in the "main" function or toplevel.
> > 
> > I meant can the C bindings not take a reference to record their taking
> > of the value and stashing it somewhere?
> This is probably not the best way to deal with this.  It will result
> in the whole libxl context never being disposed of even when it's no
> longer needed.

I was referring to taking a reference on the ocaml value used as the
user pointer, not to taking a reference to the libxl context.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.