commit | 9fdf1d4738f23a5b2a5aaf0c3510a324f017ffd9 | [log] [tgz] |
---|---|---|
author | Stefan Beller <sbeller@google.com> | Mon Feb 02 14:45:19 2015 -0800 |
committer | Stefan Beller <sbeller@google.com> | Tue Feb 03 17:01:31 2015 +0000 |
tree | 02c5575f195757eade62ef48c01c0b2983c13a30 | |
parent | 3695e7ebc9ad7bc3c0bf495e26ee07acb266f132 [diff] |
Fix possible data race condition This issue was found by scan.coverity.com (CID 19961) which is a static code analysis tool, free for open source code. Assuming we have two threads both can pass the !ready condition before entering the critical section protected with "synchronized (dataDir)". So theoretically both threads will arrive at setting ready to true. Change-Id: I4b833279d755b32e4b1e0817cca5584c21c6346a