commit | 3a13fad63af40a8364fce796b1a54a8f0a2fbf32 | [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 | a99d1e91d87550a46a523acfc0734a72f56db917 | |
parent | d681bbb1767bed09415e050ba78975df214bcd68 [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