]> git.proxmox.com Git - qemu.git/commit
trace: Direct access of atomics is verboten, use the API
authorMarkus Armbruster <armbru@redhat.com>
Fri, 25 Jan 2013 15:43:38 +0000 (16:43 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Feb 2013 20:52:55 +0000 (21:52 +0100)
commite722d705ae7648a6bd94848319a11eb0afd58a17
tree24caa47a310024e99a1cb7ace4f94b52eaface8f
parentfb3a508531227bc7fb7eee22c51d30bf2ceb15f5
trace: Direct access of atomics is verboten, use the API

The GLib Reference Manual says:

    It is very important that all accesses to a particular integer or
    pointer be performed using only this API and that different sizes
    of operation are not mixed or used on overlapping memory
    regions. Never read or assign directly from or to a value --
    always use this API.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/simple.c