commit | bbb9b1da50edbbed193b342be19b62e232254f27 | [log] [tgz] |
---|---|---|
author | Praveen Chavan <pchavan@codeaurora.org> | Mon Oct 19 14:44:52 2015 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Oct 26 19:21:19 2015 -0700 |
tree | e9b4a7ebbc032f037cfe0e842ef757bc71917d88 | |
parent | 04fdb627d164cc81c8fa2830db1b20cf1261aea4 [diff] |
GenericSource: Synchronize access to dataSource DataSource and HTTPSource can be accessed/modified by GenericSource's looper and Client's thread which can lead to race conditions when copying the sp<>. Add a Mutex lock to synchronize such accesses and avoid race conditions. CRs-Fixed: 906899 Change-Id: I2fb4b4a7079e638e151f4fe67a780007a4011652