# -*- mode: python -*- Import("env") env = env.Clone() env.Library( target='deferred_writer', source=[ 'deferred_writer.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/db/catalog/collection', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/catalog/catalog_helpers', '$BUILD_DIR/mongo/db/db_raii', '$BUILD_DIR/mongo/util/concurrency/thread_pool', ], ) env.Library( target='write_conflict_exception', source=[ 'write_conflict_exception.cpp' ], LIBDEPS=[ '$BUILD_DIR/mongo/db/server_parameters' ], ) env.Library( target='lock_manager', source=[ 'd_concurrency.cpp', 'global_lock_acquisition_tracker.cpp', 'lock_manager.cpp', 'lock_state.cpp', 'lock_stats.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/util/background_job', '$BUILD_DIR/mongo/db/server_parameters', '$BUILD_DIR/mongo/db/service_context', '$BUILD_DIR/mongo/util/concurrency/spin_lock', '$BUILD_DIR/mongo/util/concurrency/ticketholder', '$BUILD_DIR/third_party/shim_boost', ], ) env.Benchmark( target='lock_manager_bm', source=[ 'd_concurrency_bm.cpp', ], LIBDEPS=[ 'lock_manager', ]) env.CppUnitTest( target='lock_manager_test', source=['d_concurrency_test.cpp', 'deadlock_detection_test.cpp', 'fast_map_noalloc_test.cpp', 'lock_manager_test.cpp', 'lock_state_test.cpp', 'lock_stats_test.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/db/auth/authmocks', '$BUILD_DIR/mongo/db/curop', '$BUILD_DIR/mongo/db/service_context_d_test_fixture', '$BUILD_DIR/mongo/util/progress_meter', 'lock_manager', 'write_conflict_exception', ] )