]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/interruptible_future: add interruptor::future convenience declaration
authorSamuel Just <sjust@redhat.com>
Wed, 31 Jan 2024 23:33:33 +0000 (15:33 -0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 8 May 2024 07:05:36 +0000 (10:05 +0300)
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 1f152bf9861dd04ace70a62ba8a82c33136b5fb0)

src/crimson/common/interruptible_future.h

index e383d792d05d2dabf4b4511f695efc4e2eb8ad54..fc029a9ec6cc8ed68e46cb4dcadc3acef58d9bfb 100644 (file)
@@ -1094,6 +1094,9 @@ struct interruptor
 public:
   using condition = InterruptCond;
 
+  template <typename T>
+  using future = interruptible_future<InterruptCond, T>;
+
   static const void *get_interrupt_cond() {
     return (const void*)interrupt_cond<InterruptCond>.interrupt_cond.get();
   }