commit | 26369a3a010ad4c34b28766318bc1835403c1bf0 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Feb 10 18:05:34 2017 -0800 |
committer | Yabin Cui <yabinc@google.com> | Mon Feb 13 10:35:06 2017 -0800 |
tree | 2af622367637339fd08343cb7647c3d46bb25dfc | |
parent | 5c3a707542fdae13611b973ec0404f3573c058ea [diff] |
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