diff options
author | Yabin Cui <yabinc@google.com> | 2017-02-10 18:05:34 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-02-13 10:35:06 -0800 |
commit | 26369a3a010ad4c34b28766318bc1835403c1bf0 (patch) | |
tree | 2af622367637339fd08343cb7647c3d46bb25dfc /init/util.cpp | |
parent | 5c3a707542fdae13611b973ec0404f3573c058ea (diff) | |
download | system_core-26369a3a010ad4c34b28766318bc1835403c1bf0.tar.gz system_core-26369a3a010ad4c34b28766318bc1835403c1bf0.tar.bz2 system_core-26369a3a010ad4c34b28766318bc1835403c1bf0.zip |
libbacktraceoffline: make it thread-safe.
Make libbacktraceoffline thread-safe by protecting the global variable with
a lock. So it can be used in a multi-thread environment, like by
simpleperf inplace sampling.
Bug: http://b/30974760
Test: no
Change-Id: I4699bf15dfa69ac75faeb4e79a73fb3af0f08dfc
Diffstat (limited to 'init/util.cpp')
0 files changed, 0 insertions, 0 deletions