trace: portable simple trace backend using glib
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 5 Sep 2011 07:30:17 +0000 (08:30 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 21 Sep 2011 10:30:07 +0000 (11:30 +0100)
commit85aff1586fe4a0dfc6eda2dfd6e79e78063f4fbb
tree5d40f41dfcb66c6cca76a3ba0bd9cb7df7a265ef
parent598a3f35c5ceab0eb7a3cf82f8aadfc2003a31d8
trace: portable simple trace backend using glib

Convert the simple trace backend to glib so that it works under Windows.
We cannot use pthread directly but glib provides portable abstractions.
Also use glib atomics instead of newish gcc builtins which may not be
supported on Windows toolchains.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace/simple.c