diff options
author | Stephen Hines <srhines@google.com> | 2011-03-08 16:49:28 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2011-03-08 16:54:23 -0800 |
commit | 4f947d7836677bbdde9f69276ca2fb1daff32978 (patch) | |
tree | f9ab35d8a6ceca04ab17eb1ce88a6b4462114f7a /rsScriptC_Lib.cpp | |
parent | 196c1112ec95a99b75bf9335f0a4e007150e6091 (diff) | |
download | rs-4f947d7836677bbdde9f69276ca2fb1daff32978.tar.gz |
Fix a race condition during Context init/teardown.
This change makes Context initialization wait properly for all threads to be
available before leaving initContext(). This prevents a case where ~Context()
gets called before all created threads have started/finished their work. This
was triggered/discovered by running some very short-lived tests in CTS.
BUG=4064203
Change-Id: I1dd6f43fa7942c53881008e857df864e2395202e
Diffstat (limited to 'rsScriptC_Lib.cpp')
0 files changed, 0 insertions, 0 deletions