diff options
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index ffc0ce67..4ce4c9ba 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -128,10 +128,13 @@ void * RS::threadProc(void *vrsc) { rs->mErrorFunc(usrID, (const char *)rbuf); } break; + case RS_MESSAGE_TO_CLIENT_NONE: case RS_MESSAGE_TO_CLIENT_EXCEPTION: + case RS_MESSAGE_TO_CLIENT_RESIZE: // teardown. But we want to avoid starving other threads during // teardown by yielding until the next line in the destructor can - // execute to set mRun = false + // execute to set mRun = false. Note that the FIFO sends an + // empty NONE message when it reaches its destructor. usleep(1000); break; case RS_MESSAGE_TO_CLIENT_USER: |
