commit | a8ac32c7815569add9ed3d729864d3b9cdbb5fce | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Apr 15 14:50:27 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Thu Apr 16 10:41:16 2015 -0700 |
tree | 26020b2d12275fcf83014f4edae3ad2b3a98c1d0 | |
parent | 89e2f942181feab45e7dab5b6d3183da0475a295 [diff] [blame] |
Move trace.h to stdatomic. Bug: 20262261 Change-Id: Idaf984786804eb76c285f38b11abbbc0d3706509
diff --git a/libcutils/trace-host.c b/libcutils/trace-host.c index b87e543..6478e3e 100644 --- a/libcutils/trace-host.c +++ b/libcutils/trace-host.c
@@ -20,7 +20,7 @@ #define __unused __attribute__((__unused__)) #endif -volatile int32_t atrace_is_ready = 1; +atomic_bool atrace_is_ready = ATOMIC_VAR_INIT(true); int atrace_marker_fd = -1; uint64_t atrace_enabled_tags = 0;