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