1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
9 #include "rocksdb/utilities/transaction_db_mutex.h"
13 class TransactionDBMutex
;
14 class TransactionDBCondVar
;
16 // Default implementation of TransactionDBMutexFactory. May be overridden
17 // by TransactionDBOptions.custom_mutex_factory.
18 class TransactionDBMutexFactoryImpl
: public TransactionDBMutexFactory
{
20 std::shared_ptr
<TransactionDBMutex
> AllocateMutex() override
;
21 std::shared_ptr
<TransactionDBCondVar
> AllocateCondVar() override
;
24 } // namespace rocksdb
26 #endif // ROCKSDB_LITE