mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Hold TaskSet.mu in Task.Parent.
PiperOrigin-RevId: 207766238 Change-Id: Id3b66d8fe1f44c3570f67fa5ae7ba16021e35be1
This commit is contained in:
@@ -441,6 +441,8 @@ func (t *Task) Timekeeper() *Timekeeper {
|
||||
|
||||
// Parent returns t's parent.
|
||||
func (t *Task) Parent() *Task {
|
||||
t.tg.pidns.owner.mu.RLock()
|
||||
defer t.tg.pidns.owner.mu.RUnlock()
|
||||
return t.parent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user