diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-05-24 20:09:18 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-24 20:09:18 +0000 |
commit | 4ac5856496481b76ca5de7201fb2d2ec57775419 (patch) | |
tree | f0ab59adb3d533278eb4c52dca2dadb2b04237cd /pkg | |
parent | 8774f87ce1a90e279e726cd2bd8df24a83b66f32 (diff) | |
parent | df7c82a60c67e9188de752584b981708dd7b94d1 (diff) |
Merge release-20210518.0-28-gdf7c82a60 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/faketime/faketime.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/faketime/faketime.go b/pkg/tcpip/faketime/faketime.go index fb819d7a8..c4dbe8440 100644 --- a/pkg/tcpip/faketime/faketime.go +++ b/pkg/tcpip/faketime/faketime.go @@ -218,6 +218,12 @@ func (mc *ManualClock) stopTimerLocked(mt *manualTimer) { } } +// RunImmediatelyScheduledJobs runs all jobs scheduled to run at the current +// time. +func (mc *ManualClock) RunImmediatelyScheduledJobs() { + mc.Advance(0) +} + // Advance executes all work that have been scheduled to execute within d from // the current time. Blocks until all work has completed execution. func (mc *ManualClock) Advance(d time.Duration) { |