[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/5] util: introduce threaded workqueue
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/5] util: introduce threaded workqueue |
Date: |
Fri, 23 Nov 2018 19:12:31 -0500 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Thu, Nov 22, 2018 at 15:20:25 +0800, address@hidden wrote:
> + /*
> + * the bit in these two bitmaps indicates the index of the ï¼ requests
This @ is not ASCII, is it?
> + * respectively. If it's the same, the corresponding request is free
> + * and owned by the user, i.e, where the user fills a request. Otherwise,
> + * it is valid and owned by the thread, i.e, where the thread fetches
> + * the request and write the result.
> + */
> +
> + /* after the user fills the request, the bit is flipped. */
> + uint64_t request_fill_bitmap QEMU_ALIGNED(SMP_CACHE_BYTES);
> + /* after handles the request, the thread flips the bit. */
> + uint64_t request_done_bitmap QEMU_ALIGNED(SMP_CACHE_BYTES);
Use DECLARE_BITMAP, otherwise you'll get type errors as David
pointed out.
Thanks,
Emilio
Re: [Qemu-devel] [PATCH v3 2/5] util: introduce threaded workqueue,
Emilio G. Cota <=
Re: [Qemu-devel] [PATCH v3 2/5] util: introduce threaded workqueue, Emilio G. Cota, 2018/11/23
Re: [Qemu-devel] [PATCH v3 2/5] util: introduce threaded workqueue, Christophe de Dinechin, 2018/11/27