]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands.c
qga/command: use QEMU atomic primitives
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Sep 2016 21:31:02 +0000 (22:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Oct 2016 08:00:26 +0000 (10:00 +0200)
commita31393e7a594e45f2ed0ae17e1b7987e94f30fcf
treecb77e5eab7a19acfa2a0af44c4b6bbc553876390
parentdd1f63493adbbb06fa16ed15f8fc16584f55ee81
qga/command: use QEMU atomic primitives

The guest client's use of the glib's g_atomic primitives causes newer
GCC's to barf when built on Travis. As QEMU has its own primitives with
well understood semantics we might as well use them.

The use of atomics was a little inconsistent so I've also ensure the
values are correctly set with atomic primitives at the same time.

I also made the usage of bool consistent while I was at it.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20160930213106.20186-12-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qga/commands.c