]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/PyModuleRunner.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / mgr / PyModuleRunner.h
index 08c85a13263606bb4d1353716dd2979a65fee655..88d9f755a1d705fb426222003f4e638e94e4d154 100644 (file)
@@ -47,12 +47,14 @@ protected:
     void *entry() override;
   };
 
+  bool is_dead() const { return dead; }
+
   std::string thread_name;
 
 public:
   int serve();
   void shutdown();
-  void log(int level, const std::string &record);
+  void log(const std::string &record);
 
   const char *get_thread_name() const
   {
@@ -79,6 +81,9 @@ public:
   PyModuleRunnerThread thread;
 
   std::string const &get_name() const { return py_module->get_name(); }
+
+private:
+  bool dead = false;
 };