On Mon, Jan 20, 2014 at 06:29:50PM +0800, Fam Zheng wrote:
> On Fri, 01/10 09:45, Stefan Hajnoczi wrote:
> > +/* Take ownership of the AioContext.  If the AioContext will be shared 
> > between
> > + * threads, a thread must have ownership when calling aio_poll().
> > + *
> > + * Note that multiple threads calling aio_poll() means timers, BHs, and
> > + * callbacks may be invoked from a different thread than they were 
> > registered
> > + * from.  Therefore, code must use AioContext acquire/release or use
> > + * fine-grained synchronization to protect shared state if other threads 
> > will
> > + * be accessing it simultaneously.
> > + */
> > +void aio_context_acquire(AioContext *ctx);
> > +
> > +/* Reliquinish ownership of the AioContext. */
> 
> s/Reliquinish/Relinquish/

Fixed in next version.

Reply via email to