summaryrefslogtreecommitdiff
path: root/include/leveldb/table_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/leveldb/table_builder.h')
-rw-r--r--include/leveldb/table_builder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/leveldb/table_builder.h b/include/leveldb/table_builder.h
index 49d2d51..23851de 100644
--- a/include/leveldb/table_builder.h
+++ b/include/leveldb/table_builder.h
@@ -4,6 +4,11 @@
//
// TableBuilder provides the interface used to build a Table
// (an immutable and sorted map from keys to values).
+//
+// Multiple threads can invoke const methods on a TableBuilder without
+// external synchronization, but if any of the threads may call a
+// non-const method, all threads accessing the same TableBuilder must use
+// external synchronization.
#ifndef STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_
#define STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_