[CRIU] [PATCH 05/21] parasite: use transparent thread indexes

Andrew Vagin avagin at parallels.com
Fri May 24 09:53:13 EDT 2013


On Fri, May 24, 2013 at 04:47:32PM +0400, Pavel Emelyanov wrote:
> On 05/24/2013 04:20 PM, Andrey Vagin wrote:
> > In this case we don't need to search thread_state in parasite.
> 
> Comment should explain what "transparent" means.

We have three arrays for thread related data: item->threads,
parasite_ctl->thread and tid_state in parasite.

With this patch a thread will have the same index in all arrays.

The zero index is used for a thread leader.


More information about the CRIU mailing list