commit | 4d116cc4a6e775d93274a71d1ddb2ed28bbccfe7 | [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 | 1fd80ca432bfcd2a99e4e1ddd84773403a84bffa [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;