summaryrefslogtreecommitdiff
path: root/sfntly/data/readable_font_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sfntly/data/readable_font_data.cc')
-rw-r--r--sfntly/data/readable_font_data.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfntly/data/readable_font_data.cc b/sfntly/data/readable_font_data.cc
index ec67757..fb083cb 100644
--- a/sfntly/data/readable_font_data.cc
+++ b/sfntly/data/readable_font_data.cc
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-#include "sfntly/data/memory_byte_array.h"
#include "sfntly/data/readable_font_data.h"
#include <stdio.h>
+#include "sfntly/data/memory_byte_array.h"
#include "sfntly/data/writable_font_data.h"
#include "sfntly/port/exception_type.h"
@@ -45,7 +45,7 @@ ReadableFontData* ReadableFontData::CreateReadableFontData(ByteVector* b) {
}
int64_t ReadableFontData::Checksum() {
- // TODO(arthurhsu): IMPLEMENT: atomicity
+ AutoLock lock(checksum_lock_);
if (!checksum_set_) {
ComputeChecksum();
}