commit | 3a57521f63c214896119b4c97741af60e26b5d54 | [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 | 06fab2cb37f202b3ffc30abdfdb21e574c435112 [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