diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-18 22:18:50 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-18 22:18:50 +0000 |
commit | d83df1d62aaf81ab5e8a0cef9e61386d29a85580 (patch) | |
tree | bc781b545c9d636b53c6307395ee13901f91877c /pkg/sentry/kernel/task.go | |
parent | f8d1420c53909224c469dbf74843a1e20517696d (diff) | |
parent | c98e7f0d19478ca57ba8c96444f225784035321e (diff) |
Merge release-20190806.1-156-gc98e7f0 (automated)
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r-- | pkg/sentry/kernel/task.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go index e91f82bb3..c82ef5486 100644 --- a/pkg/sentry/kernel/task.go +++ b/pkg/sentry/kernel/task.go @@ -35,6 +35,7 @@ import ( "gvisor.dev/gvisor/pkg/sentry/uniqueid" "gvisor.dev/gvisor/pkg/sentry/usage" "gvisor.dev/gvisor/pkg/sentry/usermem" + "gvisor.dev/gvisor/pkg/waiter" "gvisor.dev/gvisor/third_party/gvsync" ) @@ -133,6 +134,13 @@ type Task struct { // signalStack is exclusive to the task goroutine. signalStack arch.SignalStack + // signalQueue is a set of registered waiters for signal-related events. + // + // signalQueue is protected by the signalMutex. Note that the task does + // not implement all queue methods, specifically the readiness checks. + // The task only broadcast a notification on signal delivery. + signalQueue waiter.Queue `state:"zerovalue"` + // If groupStopPending is true, the task should participate in a group // stop in the interrupt path. // |