]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: Name thread for ceph_timer
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 12 Dec 2019 16:19:51 +0000 (11:19 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 15 May 2020 14:55:10 +0000 (10:55 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/ceph_timer.h

index d12cc19933ae92167f770f530916027c9c474990..ae895db745bb56df99539bd1c2373d48ce4ed785 100644 (file)
 
 #include "include/function2.hpp"
 
+#include "common/detail/construct_suspended.h"
+
 namespace bi = boost::intrusive;
 namespace ceph {
 
-/// Newly constructed timer should be suspended at point of
-/// construction.
-
-struct construct_suspended_t { };
-constexpr construct_suspended_t construct_suspended { };
-
 // Compared to the SafeTimer this does fewer allocations (you
 // don't have to allocate a new Context every time you
 // want to cue the next tick.)