]> 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)
committerSamuel Just <sjust@redhat.com>
Thu, 29 Feb 2024 23:02:38 +0000 (15:02 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/interruptible_future.h

index ec49eac0b0fc0e9351febed266b78b42a17a50c0..ff80d71257ed85976fcec88cf7bf082dca017a97 100644 (file)
@@ -1096,6 +1096,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();
   }