summaryrefslogtreecommitdiff
path: root/ace/Method_Request.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-10-17 22:19:17 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-10-17 22:19:17 +0000
commit714ddfc6970bd20d957e19013a15cb4db7e9064e (patch)
tree92508b4b1eecd428cfb40f9237746d9e04dc5b6e /ace/Method_Request.h
parent727ccc10746e083313682f704e4ec2ea3a3e2b92 (diff)
downloadATCD-714ddfc6970bd20d957e19013a15cb4db7e9064e.tar.gz
.
Diffstat (limited to 'ace/Method_Request.h')
-rw-r--r--ace/Method_Request.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/ace/Method_Request.h b/ace/Method_Request.h
new file mode 100644
index 00000000000..23c0653fc13
--- /dev/null
+++ b/ace/Method_Request.h
@@ -0,0 +1,46 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// Method_Request.h
+//
+// = AUTHOR
+// Andres Kruse <Andres.Kruse@cern.ch> and Douglas C. Schmidt
+// <schmidt@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef ACE_METHOD_OBJECT_H
+#define ACE_METHOD_OBJECT_H
+
+#include "ace/OS.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class ACE_Export ACE_Method_Request
+{
+ // = TITLE
+ // Reifies a method into an object. Subclasses typically
+ // represent necessary state and behavior.
+ //
+ // = DESCRIPTION
+ // A <Method_Request> is inserted in the <Activation_Queue>, where
+ // it is subsequently removed by the <Scheduler> and invoked.
+public:
+ // = Initialization and termination methods.
+ ACE_Method_Request (void);
+ virtual ~ACE_Method_Request (void);
+
+ // = Invocation method
+ virtual int call (void) = 0;
+ // Invoked when the <Method_Request> is scheduled to run.
+};
+
+#endif /* ACE_METHOD_OBJECT_H */