diff options
author | Christopher Ferris <cferris@google.com> | 2013-10-30 21:28:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-10-30 21:28:22 +0000 |
commit | 8c58086c54a23d33e915852a1355a171b09679cc (patch) | |
tree | 9eaeff7f903e0b3d2776420914e3533bc735faec /libbacktrace/BacktraceThread.h | |
parent | 36d44740dd045403ae615b8dd6dac8b9a4e9f5bf (diff) | |
parent | 8ed46278bee3cfc4c216f3a1524744019b693200 (diff) | |
download | system_core-8c58086c54a23d33e915852a1355a171b09679cc.zip system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.gz system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.bz2 |
Merge "More libbacktrace fixes."
Diffstat (limited to 'libbacktrace/BacktraceThread.h')
-rw-r--r-- | libbacktrace/BacktraceThread.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libbacktrace/BacktraceThread.h b/libbacktrace/BacktraceThread.h index afea771..8ed1122 100644 --- a/libbacktrace/BacktraceThread.h +++ b/libbacktrace/BacktraceThread.h @@ -32,26 +32,25 @@ typedef enum { class BacktraceThreadInterface; -class ThreadEntry { -public: +struct ThreadEntry { ThreadEntry( BacktraceThreadInterface* impl, pid_t pid, pid_t tid, size_t num_ignore_frames); ~ThreadEntry(); - bool Match(pid_t pid, pid_t tid) { return (pid == pid_ && tid == tid_); } + bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid && chk_tid == tid); } static ThreadEntry* AddThreadToUnwind( BacktraceThreadInterface* thread_intf, pid_t pid, pid_t tid, size_t num_ignored_frames); - BacktraceThreadInterface* thread_intf_; - pid_t pid_; - pid_t tid_; - ThreadEntry* next_; - ThreadEntry* prev_; - int32_t state_; - int num_ignore_frames_; + BacktraceThreadInterface* thread_intf; + pid_t pid; + pid_t tid; + ThreadEntry* next; + ThreadEntry* prev; + int32_t state; + int num_ignore_frames; }; // Interface class that does not contain any local storage, only defines |