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

Re: [Xen-devel] [PATCH RFC v2 12/13] libxl: New API for providing OS events to libxl



Stefano Stabellini writes ("Re: [Xen-devel] [PATCH RFC v2 12/13] libxl: New API 
for providing OS events to libxl"):
> On Fri, 28 Oct 2011, Ian Jackson wrote:
> > + * There are two approaches available.  The first is appropriate for
> > + * simple programs handling reasonably small numbers of domains:
> > + *
> > + *   for (;;) {
> > + *      libxl_osevent_beforepoll(...)
> > + *      poll();
> > + *      libxl_osevent_afterpoll(...);
> > + *      for (;;) {
> > + *        r=libxl_event_check(...);
> > + *        if (r==LIBXL_NOT_READY) break;
> > + *        if (r) handle failure;
> > + *        do something with the event;
> > + *      }
> > + *   }
> 
> It is good that you included an example here but it doesn't follow the
> CODING_STYLE

I guess you mean the inner indent level being 2 and the missing spaces
near "r=".  Fixed.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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