qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/3] colo-compare: reconstruct the mutex lock us


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH 1/3] colo-compare: reconstruct the mutex lock usage
Date: Tue, 14 Feb 2017 12:08:01 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0



On 2017年02月14日 10:32, Hailiang Zhang wrote:



Hi Jason,

I think the better way is notify the comparing thread and let it do the
releasing. You probably need similar mechanism to notify from comparing
thread to checkpoint thread.


It seems that there is no available APIs in glib to notify a thread which
are run coroutine to do something (idle source ?). What about using anonymous pipe as the GPollFD to communicate between colo comparing thread and colo thread ?

Any ideas ?

Hailiang

Haven't thought this deeply. But I think you can try event notifier first which was designed for such kind of notification.

Thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]