summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/waitable/waitable.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2021-11-04 18:50:20 -0700
committergVisor bot <gvisor-bot@google.com>2021-11-04 18:53:15 -0700
commitd80af5f8b58d2bfe23d57e133a8d35eaed59fa13 (patch)
tree31d00204bdd4be118ddc5409ad1155b78c196938 /pkg/tcpip/link/waitable/waitable.go
parentfe8e48fc6d5094fe34783b1040b2ae4ba05349b5 (diff)
Remove id from sleep.Sleeper API.
In a subsequent change, the Sleeper API will be plumbed through and used for arbitrary task wakeups. This requires a non-static association of Wakers and Sleepers, which means that a fixed ID no longer works. This is a relatively simple change that removes the ID from the Waker association, and simply uses the Waker pointer itself. That change also makes minor improvements to the tests to ensure that the benchmarks are more representative by removing goroutine start from the hot path (and uses Wakers for required synchronization), adds assertion checks to AddWaker, and clears relevant fields during Done (to allow assertions to pass). PiperOrigin-RevId: 407719630
Diffstat (limited to 'pkg/tcpip/link/waitable/waitable.go')
0 files changed, 0 insertions, 0 deletions