summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmortician.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llmortician.h')
-rw-r--r--indra/llcommon/llmortician.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/llcommon/llmortician.h b/indra/llcommon/llmortician.h
new file mode 100644
index 0000000000..6e69f1af0b
--- /dev/null
+++ b/indra/llcommon/llmortician.h
@@ -0,0 +1,33 @@
+/**
+ * @file llmortician.h
+ * @brief Base class for delayed deletions.
+ *
+ * Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LLMORTICIAN_H
+#define LLMORTICIAN_H
+
+#include "stdtypes.h"
+
+class LLMortician
+{
+public:
+ LLMortician() { mIsDead = FALSE; }
+ static void updateClass();
+ virtual ~LLMortician();
+ void die();
+ BOOL isDead() { return mIsDead; }
+
+ // sets destroy immediate true
+ static void setZealous(BOOL b);
+
+private:
+ static BOOL sDestroyImmediate;
+
+ BOOL mIsDead;
+};
+
+#endif
+