mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-05 16:47:02 +08:00
device: serialize access to IpcSetOperation
Interleaves IpcSetOperations would spell trouble. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
@@ -23,6 +23,7 @@ type Device struct {
|
||||
isUp AtomicBool // device is (going) up
|
||||
isClosed AtomicBool // device is closed? (acting as guard)
|
||||
log *Logger
|
||||
ipcSetMu sync.Mutex // serializes UAPI set operations
|
||||
|
||||
// synchronized resources (locks acquired in order)
|
||||
|
||||
|
Reference in New Issue
Block a user