diff options
author | Adin Scannell <ascannell@google.com> | 2021-11-04 18:50:20 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-04 18:53:15 -0700 |
commit | d80af5f8b58d2bfe23d57e133a8d35eaed59fa13 (patch) | |
tree | 31d00204bdd4be118ddc5409ad1155b78c196938 /test/syscalls/linux/raw_socket.cc | |
parent | fe8e48fc6d5094fe34783b1040b2ae4ba05349b5 (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 'test/syscalls/linux/raw_socket.cc')
0 files changed, 0 insertions, 0 deletions