summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContext.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-10-15 16:47:31 -0700
committerJason Sams <rjsams@android.com>2009-10-15 16:47:31 -0700
commit41c19db90e250e2b7cb438904f0e96a0ef455d6d (patch)
tree08549838621bf28fcb048d395b3255b7605dda56 /libs/rs/rsContext.h
parentc7412b3b08d62c298dc7c3e5f369f406a3c0eac2 (diff)
downloadframeworks_base-41c19db90e250e2b7cb438904f0e96a0ef455d6d.zip
frameworks_base-41c19db90e250e2b7cb438904f0e96a0ef455d6d.tar.gz
frameworks_base-41c19db90e250e2b7cb438904f0e96a0ef455d6d.tar.bz2
Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code.
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r--libs/rs/rsContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index 3570e10..0dd90ed 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -53,6 +53,9 @@ public:
~Context();
static pthread_key_t gThreadTLSKey;
+ static uint32_t gThreadTLSKeyCount;
+ static pthread_mutex_t gInitMutex;
+
struct ScriptTLSStruct {
Context * mContext;
Script * mScript;