transaction_db_mutex_impl.h 792 B

1234567891011121314151617181920212223
  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. #include "rocksdb/utilities/transaction_db_mutex.h"
  7. namespace ROCKSDB_NAMESPACE {
  8. class TransactionDBMutex;
  9. class TransactionDBCondVar;
  10. // Default implementation of TransactionDBMutexFactory. May be overridden
  11. // by TransactionDBOptions.custom_mutex_factory.
  12. class TransactionDBMutexFactoryImpl : public TransactionDBMutexFactory {
  13. public:
  14. std::shared_ptr<TransactionDBMutex> AllocateMutex() override;
  15. std::shared_ptr<TransactionDBCondVar> AllocateCondVar() override;
  16. };
  17. } // namespace ROCKSDB_NAMESPACE