[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/6] coroutine-lock: make CoMutex thread-safe
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 1/6] coroutine-lock: make CoMutex thread-safe |
Date: |
Thu, 16 Feb 2017 16:03:33 +0000 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Mon, Feb 13, 2017 at 07:12:39PM +0100, Paolo Bonzini wrote:
> diff --git a/tests/test-aio-multithread.c b/tests/test-aio-multithread.c
> index 534807d..ada8c48 100644
> --- a/tests/test-aio-multithread.c
> +++ b/tests/test-aio-multithread.c
> @@ -196,6 +196,88 @@ static void test_multi_co_schedule_10(void)
> test_multi_co_schedule(10);
> }
>
> +/* CoMutex thread-safety. */
> +
> +static uint32_t atomic_counter;
> +static uint32_t running;
> +static uint32_t counter;
> +static CoMutex comutex;
> +
> +static void test_multi_co_mutex_entry(void *opaque)
Minor nit: missing coroutine_fn.
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH 0/6] Make CoMutex/CoQueue/CoRwlock thread-safe, Paolo Bonzini, 2017/02/13
- [Qemu-devel] [PATCH 1/6] coroutine-lock: make CoMutex thread-safe, Paolo Bonzini, 2017/02/13
- Re: [Qemu-devel] [PATCH 1/6] coroutine-lock: make CoMutex thread-safe,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 2/6] coroutine-lock: add limited spinning to CoMutex, Paolo Bonzini, 2017/02/13
- [Qemu-devel] [PATCH 4/6] coroutine-lock: place CoMutex before CoQueue in header, Paolo Bonzini, 2017/02/13
- [Qemu-devel] [PATCH 3/6] test-aio-multithread: add performance comparison with thread-based mutexes, Paolo Bonzini, 2017/02/13
- [Qemu-devel] [PATCH 5/6] coroutine-lock: add mutex argument to CoQueue APIs, Paolo Bonzini, 2017/02/13
- [Qemu-devel] [PATCH 6/6] coroutine-lock: make CoRwlock thread-safe and fair, Paolo Bonzini, 2017/02/13
- Re: [Qemu-devel] [PATCH 0/6] Make CoMutex/CoQueue/CoRwlock thread-safe, Fam Zheng, 2017/02/15