/* -*- C++ -*- */ // $Id$ // ============================================================================ // // = LIBRARY // ace // // = FILENAME // Activation_Queue.h // // = AUTHOR // Andres Kruse and Douglas C. Schmidt // // // ============================================================================ #if !defined (ACE_ACTIVATION_QUEUE_H) #define ACE_ACTIVATION_QUEUE_H #include "ace/Synch_T.h" #include "ace/Message_Queue.h" #include "ace/Method_Object.h" class ACE_Export ACE_Activation_Queue { // = TITLE // Reifies a method into an object. Subclasses typically // represent necessary state and behavior. // // = DESCRIPTION // A is inserted in the , where // it is subsequently removed by the and invoked. public: // = Initialization and termination methods. ACE_Activation_Queue (ACE_Message_Queue *new_queue = 0); virtual ~ACE_Activation_Queue (void); // = Queue operations. ACE_Method_Object *dequeue (ACE_Time_Value *tv = 0); // Dequeue the next available . int enqueue (ACE_Method_Object *new_method_object, ACE_Time_Value *tv = 0); // Enqueue the . void dump (void) const; // Dump the state of an object. ACE_ALLOC_HOOK_DECLARE; // Declare the dynamic allocation hooks. protected: ACE_Message_Queue *queue_; // Stores the . int delete_queue_; // Keeps track of whether we need to delete the queue. }; #endif /* ACE_ACTIVATION_QUEUE_H */