diff options
author | Elliott Hughes <enh@google.com> | 2018-07-11 11:13:16 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-07-11 13:55:07 -0700 |
commit | 38488907a09c88d2c3954a2dc69e5a4785d6a5af (patch) | |
tree | 160d2c2cca2c491e1b905793e6f0d6b90d78beef /base/threads.cpp | |
parent | 1db3789252342c5bfd34d889792866c3b4357b0c (diff) | |
download | system_core-38488907a09c88d2c3954a2dc69e5a4785d6a5af.tar.gz system_core-38488907a09c88d2c3954a2dc69e5a4785d6a5af.tar.bz2 system_core-38488907a09c88d2c3954a2dc69e5a4785d6a5af.zip |
Move libbacktrace off cutils.
There's still <cutils/atomic.h> in a test, but I don't understand why
that isn't just std::atomic.
Also add a shared tgkill wrapper to libbase.
Bug: N/A
Test: ran tests
Change-Id: Idd4baa1e1670a84b3a8f35803cc5ffe5aae008a6
Diffstat (limited to 'base/threads.cpp')
-rw-r--r-- | base/threads.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/threads.cpp b/base/threads.cpp index a71382bc5..48f6197ef 100644 --- a/base/threads.cpp +++ b/base/threads.cpp @@ -46,3 +46,9 @@ uint64_t GetThreadId() { } // namespace base } // namespace android + +#if defined(__GLIBC__) +int tgkill(int tgid, int tid, int sig) { + return syscall(__NR_tgkill, tgid, tid, sig); +} +#endif |