diff options
| author | 2009-12-09 11:07:16 -0800 | |
|---|---|---|
| committer | 2009-12-09 11:07:16 -0800 | |
| commit | 57ce0888fcb1376b385c3dab5e4262793acaaf16 (patch) | |
| tree | c21de7ba4665684bbc2270bb7079be7fd93e2ebb /libs/rs/rsScriptC.cpp | |
| parent | d8c752ef74bc6d8b412defe35caf1a19be15eb8b (diff) | |
| parent | b9d5c574ff11a9470b92c5b9a62da6a655d9ef7a (diff) | |
Merge change Id22c0137 into eclair
* changes:
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
| -rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 073d98bf4e1b..f11b862af61b 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -60,7 +60,7 @@ void ScriptC::setupScript() } -bool ScriptC::run(Context *rsc, uint32_t launchIndex) +uint32_t ScriptC::run(Context *rsc, uint32_t launchIndex) { Context::ScriptTLSStruct * tls = (Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); @@ -85,9 +85,9 @@ bool ScriptC::run(Context *rsc, uint32_t launchIndex) } setupScript(); - bool ret = false; + uint32_t ret = 0; tls->mScript = this; - ret = mProgram.mScript(launchIndex) != 0; + ret = mProgram.mScript(launchIndex); tls->mScript = NULL; return ret; } |