transaction_db_mutex_impl.h 838 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. #pragma once
  6. #ifndef ROCKSDB_LITE
  7. #include "rocksdb/utilities/transaction_db_mutex.h"
  8. namespace ROCKSDB_NAMESPACE {
  9. class TransactionDBMutex;
  10. class TransactionDBCondVar;
  11. // Default implementation of TransactionDBMutexFactory. May be overridden
  12. // by TransactionDBOptions.custom_mutex_factory.
  13. class TransactionDBMutexFactoryImpl : public TransactionDBMutexFactory {
  14. public:
  15. std::shared_ptr<TransactionDBMutex> AllocateMutex() override;
  16. std::shared_ptr<TransactionDBCondVar> AllocateCondVar() override;
  17. };
  18. } // namespace ROCKSDB_NAMESPACE
  19. #endif // ROCKSDB_LITE