]> git.ipfire.org Git - thirdparty/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>
Fri, 15 Dec 2017 11:44:41 +0000 (12:44 +0100)
commit0ec9b0cc1b1b11f500665642ca352e2ee112a629
tree1ae876927900da2fb492373014df6937837344d2
parente1ff30a9a8ca20e43fcddbb3e217c472f97d91aa
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