mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
674beabc73
The LoadFunc loads a value and calls a user-provided function. The utility of this method is to ensure that the map lock is held while executing user-provided logic. This allows us to solve TOCTOU bugs that would be nearly imposible to the solve without this API. Updates tailscale/corp#14772 Signed-off-by: Joe Tsai <joetsai@digital-static.net> |
||
---|---|---|
.. | ||
locked_test.go | ||
locked.go | ||
shardedmap_test.go | ||
shardedmap.go | ||
syncs_test.go | ||
syncs.go | ||
watchdog_test.go | ||
watchdog.go |