]> git.proxmox.com Git - mirror_lxc.git/commit
commands: don't lock atomic operations
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 22 Nov 2017 13:25:10 +0000 (14:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 15:01:22 +0000 (16:01 +0100)
commite533be71c8a397ebc6d72c867ff8627d0a87260e
treed82e680631728528238d6114a33f14773470f5e3
parentb1ca434ae52c6b1ac9f73030d022e2a2e537cb3f
commands: don't lock atomic operations

We're dealing with an integer (lxc_state_t which is an enum). Any POSIX
implementation makes those operations atomic so there's not need in locking
this.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c