Re: [External] Re: [PATCH 1/2] QSLIST: add atomic replace operation

2020-08-24 Thread 王洪浩
This function is indeed a bit vague in semantics. I'll modify this function to make it more in line with `replace`. Stefan Hajnoczi 于2020年8月24日周一 下午11:27写道: > > On Mon, Aug 24, 2020 at 12:31:20PM +0800, wanghonghao wrote: > > Replace a queue with another atomicly. It's useful when we need to tran

Re: [PATCH 1/2] QSLIST: add atomic replace operation

2020-08-24 Thread Stefan Hajnoczi
On Mon, Aug 24, 2020 at 12:31:20PM +0800, wanghonghao wrote: > Replace a queue with another atomicly. It's useful when we need to transfer > queues between threads. > > Signed-off-by: wanghonghao > --- > include/qemu/queue.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/include/q

[PATCH 1/2] QSLIST: add atomic replace operation

2020-08-23 Thread wanghonghao
Replace a queue with another atomicly. It's useful when we need to transfer queues between threads. Signed-off-by: wanghonghao --- include/qemu/queue.h | 4 1 file changed, 4 insertions(+) diff --git a/include/qemu/queue.h b/include/qemu/queue.h index 456a5b01ee..a3ff544193 100644 --- a/in

[PATCH 1/2] QSLIST: add atomic replace operation

2020-08-13 Thread wanghonghao
Replace a queue with another atomicly. It's useful when we need to transfer queues between threads. Signed-off-by: wanghonghao --- include/qemu/queue.h | 4 1 file changed, 4 insertions(+) diff --git a/include/qemu/queue.h b/include/qemu/queue.h index 456a5b01ee..a3ff544193 100644 --- a/in