threadgroup_change_begin — mark the beginning of changes to a threadgroup
void threadgroup_change_begin ( | struct task_struct * tsk) ; |
All operations which modify a threadgroup - a new thread joining the group, death of a member thread (the assertion of PF_EXITING) and exec(2) dethreading the process and replacing the leader - are wrapped by threadgroup_change_{begin|end}(). This is to provide a place which subsystems needing threadgroup stability can hook into for synchronization.