commit | 69a5f6c3e04aa0f3f87eed7578a32782c97bd48f | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Fri Sep 02 09:34:51 2011 -0700 |
committer | Andreas Huber <andih@google.com> | Fri Sep 02 09:34:51 2011 -0700 |
tree | fcc1b2a716ba3525a96c12354e2e3ea7996b1c83 | |
parent | bffb83e96c2f3d01bf42490737201ab4de79c91b [diff] |
Properly serialize access to FileSource::getSize by acquiring the mutex Both ::getSize and ::read call into lseek64, if this happens simultaneously from multiple threads the results are undefined if not properly serialized. Change-Id: I737cafebd836f3d8eb702beac557b4731f69c6f6 related-to-bug: 5196490