commit | 41c19db90e250e2b7cb438904f0e96a0ef455d6d | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Thu Oct 15 16:47:31 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Thu Oct 15 16:47:31 2009 -0700 |
tree | 08549838621bf28fcb048d395b3255b7605dda56 | |
parent | c7412b3b08d62c298dc7c3e5f369f406a3c0eac2 [diff] [blame] |
Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code.
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 @@ ~Context(); static pthread_key_t gThreadTLSKey; + static uint32_t gThreadTLSKeyCount; + static pthread_mutex_t gInitMutex; + struct ScriptTLSStruct { Context * mContext; Script * mScript;