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)
commitee432f3d3052e67f5a62a9eb6ea937c2f72215bb
tree5d40f41dfcb66c6cca76a3ba0bd9cb7df7a265ef
parent52ed9d83a3aa556df720a34475d5a444ee7c437c
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