aboutsummaryrefslogtreecommitdiffstats
path: root/device/pools.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-02device: use a waiting sync.Pool instead of a channelJason A. Donenfeld1-60/+53
Channels are FIFO which means we have guaranteed cache misses. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-01-28global: bump copyrightJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-01-07all: use ++ to incrementJosh Bleecher Snyder1-3/+3
Make the code slightly more idiomatic. No functional changes. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-01-07device: always name *Queue*Element variables elemJosh Bleecher Snyder1-8/+8
They're called elem in most places. Rename a few local variables to make it consistent. This makes it easier to grep the code for things like elem.Drop. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-12-08device: clear pointers when returning elems to poolsJosh Bleecher Snyder1-0/+2
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-05-02global: update header comments and modulesJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-03global: begin modularizationJason A. Donenfeld1-1/+1
2019-02-05Update copyrightJason A. Donenfeld1-2/+2
2018-09-25Make it easy to restrict queue sizes moreJason A. Donenfeld1-15/+13
2018-09-24More poolingJason A. Donenfeld1-0/+91