diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-16 15:51:44 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-16 15:51:44 +0000 |
commit | 9266d3fb35c17bd8c62b71ac3c77420067a1b9df (patch) | |
tree | 94e398c48ecdb198615be85add9b69cf7d6d0f88 /pkg/sentry/kernel/threads.go | |
parent | 931e5ce48ae3b9a63e3d0f9742261d75645f7fe8 (diff) | |
parent | 810748f5c9c72f713d81d14bcc89a8eb4ca49eb6 (diff) |
Merge release-20200608.0-63-g810748f5c (automated)
Diffstat (limited to 'pkg/sentry/kernel/threads.go')
-rw-r--r-- | pkg/sentry/kernel/threads.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/threads.go b/pkg/sentry/kernel/threads.go index bf2dabb6e..872e1a82d 100644 --- a/pkg/sentry/kernel/threads.go +++ b/pkg/sentry/kernel/threads.go @@ -87,6 +87,13 @@ type TaskSet struct { // at time of save (but note that this is not necessarily the same thing as // sync.WaitGroup's zero value). runningGoroutines sync.WaitGroup `state:"nosave"` + + // aioGoroutines is the number of goroutines running async I/O + // callbacks. + // + // aioGoroutines is not saved but is required to be zero at the time of + // save. + aioGoroutines sync.WaitGroup `state:"nosave"` } // newTaskSet returns a new, empty TaskSet. |