1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_RBD_MIRROR_THREADS_H
5 #define CEPH_RBD_MIRROR_THREADS_H
7 #include "common/Mutex.h"
14 namespace librbd { struct ImageCtx; }
19 template <typename ImageCtxT = librbd::ImageCtx>
21 ThreadPool *thread_pool = nullptr;
22 ContextWQ *work_queue = nullptr;
24 SafeTimer *timer = nullptr;
27 explicit Threads(CephContext *cct);
28 Threads(const Threads&) = delete;
29 Threads& operator=(const Threads&) = delete;
37 extern template class rbd::mirror::Threads<librbd::ImageCtx>;
39 #endif // CEPH_RBD_MIRROR_THREADS_H