]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: remove starting waitgroups
authorJosh Bleecher Snyder <josh@tailscale.com>
Thu, 10 Dec 2020 19:25:08 +0000 (11:25 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Jan 2021 13:49:44 +0000 (14:49 +0100)
commitc9e4a859ae8cdd7046a467afe8b50c5364c2cfc7
tree933a4c47443a72e8431ec5155775f93a84ac2314
parent3591acba76d30ea7986ff5828cefcd7d8f705be2
device: remove starting waitgroups

In each case, the starting waitgroup did nothing but ensure
that the goroutine has launched.

Nothing downstream depends on the order in which goroutines launch,
and if the Go runtime scheduler is so broken that goroutines
don't get launched reasonably promptly, we have much deeper problems.

Given all that, simplify the code.

Passed a race-enabled stress test 25,000 times without failure.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/device.go
device/peer.go
device/receive.go
device/send.go
device/tun.go