Fix QSB, which uses a pthread_key_create destructor to detach.
We've publicly supported this behavior since Eclair.
Change-Id: I323b4981aa87eba7146b9cbab5a68a9fb1f1b5c6
diff --git a/src/thread.h b/src/thread.h
index 24c78ee..155c980 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -665,9 +665,13 @@
public:
// Runtime support function pointers
+ // TODO: move this near the top, since changing its offset requires all oats to be recompiled!
EntryPoints entrypoints_;
private:
+ // How many times has our pthread key's destructor been called?
+ uint32_t thread_exit_check_count_;
+
friend class ScopedThreadListLockReleaser;
DISALLOW_COPY_AND_ASSIGN(Thread);
};