[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v2 2/6] aio: add aio_context_acquire() and aio_con
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC v2 2/6] aio: add aio_context_acquire() and aio_context_release() |
Date: |
Thu, 20 Feb 2014 13:45:30 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [RFC v2 2/6] aio: add aio_context_acquire() and aio_context_release(),
Stefan Hajnoczi <=