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

Re: [Xen-devel] [PATCH 17/28] libxl: ocaml: add with_ctx helper function


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • From: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
  • Date: Tue, 23 Apr 2013 14:03:09 +0100
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 23 Apr 2013 13:03:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac42pns/jqFKiiJgSdSe1/B46l14mQJfA3oA
  • Thread-topic: [PATCH 17/28] libxl: ocaml: add with_ctx helper function

> On Mon, 2013-03-25 at 14:45 +0000, Rob Hoes wrote:
> > +let with_ctx ?logger f =
> 
> Does this imply that xenopsd et al intend to use short lived contexts rather
> than one or more long lived ones?

No, it was just a little more convenient, because the with_ctx function also 
cleaned up the context and logger after use, so you won't be able to forget 
this. I have now taken Dave's advise and wrapped the ctx and logger pointers in 
custom block with "finalize" (GC) functions, so this became less useful. I have 
remove this patch in my v2 series.

Cheers,
Rob
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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