leveldb/db
costan 7d8e41e49b leveldb: Replace AtomicPointer with std::atomic.
This CL removes AtomicPointer from leveldb's port interface. Its usage is replaced with std::atomic<> from the C++11 standard library.

AtomicPointer was used to wrap flags, numbers, and pointers, so its instances are replaced with std::atomic<bool>, std::atomic<int>, std::atomic<size_t> and std::atomic<Node*>.

This CL does not revise the memory ordering. AtomicPointer's methods are replaced mechanically with their std::atomic equivalents, even when the underlying usage is incorrect. (Example: DBImpl::has_imm_ is written using release stores, even though it is always read using relaxed ordering.) Revising the memory ordering is left for future CLs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=237865146
2019-03-11 13:41:25 -07:00
..
autocompact_test.cc LevelDB 1.13 2013-08-21 11:12:47 -07:00
builder.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
builder.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
c_test.c Expose WriteBatch::Append in the C API. 2018-08-19 19:54:34 -07:00
c.cc Expose WriteBatch::Append in the C API. 2018-08-19 19:54:34 -07:00
corruption_test.cc Added native support for Windows. 2019-03-01 18:00:35 -08:00
db_bench.cc leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
db_impl.cc leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
db_impl.h leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
db_iter.cc Remove ssize_t from code that is not POSIX-specific. 2018-09-04 10:37:22 -07:00
db_iter.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
db_test.cc leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
dbformat_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
dbformat.cc Release leveldb 1.10 2013-05-14 17:03:07 -07:00
dbformat.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
dumpfile.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
fault_injection_test.cc Remove ssize_t from code that is not POSIX-specific. 2018-09-04 10:37:22 -07:00
filename_test.cc Add tests for {Old}InfoLogFileName(). 2018-03-12 09:24:25 -07:00
filename.cc Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
filename.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
leveldbutil.cc Putting build artifacts in subdirectory. 2016-01-29 16:10:00 -08:00
log_format.h Convert documentation to markdown. 2017-03-01 09:42:25 -08:00
log_reader.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
log_reader.h Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
log_test.cc This CL fixes a bug encountered when reading records from leveldb files that have been split, as in a [] input task split. 2016-03-31 15:53:34 -07:00
log_writer.cc LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened. 2015-08-11 14:56:39 -07:00
log_writer.h LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened. 2015-08-11 14:56:39 -07:00
memtable.cc Fix sign mismatch warnings in GCC. 2018-04-16 18:13:09 -07:00
memtable.h Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
recovery_test.cc Added native support for Windows. 2019-03-01 18:00:35 -08:00
repair.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
skiplist_test.cc leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
skiplist.h leveldb: Replace AtomicPointer with std::atomic. 2019-03-11 13:41:25 -07:00
snapshot.h Clean up SnapshotImpl. 2018-04-30 16:01:39 -07:00
table_cache.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
table_cache.h Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
version_edit_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
version_edit.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
version_edit.h A number of fixes: 2011-10-31 17:22:06 +00:00
version_set_test.cc Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
version_set.cc Fix typo (#565) 2019-03-11 10:36:11 -07:00
version_set.h Replace NULL with nullptr in C++ files. 2018-04-10 16:26:43 -07:00
write_batch_internal.h Clean up layering of storage/leveldb/... 2014-12-11 08:02:45 -08:00
write_batch_test.cc Expose WriteBatch::Append(). 2018-08-14 15:30:29 -07:00
write_batch.cc leveldb: Make WriteBatch::ApproximateSize() const. 2019-01-15 18:43:13 +00:00