Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support retrieving the underlying queue #2071

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ACE/ace/Message_Queue_T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,13 @@ ACE_Message_Queue_Ex<ACE_MESSAGE_TYPE, ACE_SYNCH_USE, TIME_POLICY>::set_time_pol
this->queue_.set_time_policy (rhs);
}

template <class ACE_MESSAGE_TYPE, ACE_SYNCH_DECL, class TIME_POLICY>
ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY> &
ACE_Message_Queue_Ex<ACE_MESSAGE_TYPE, ACE_SYNCH_USE, TIME_POLICY>::queue ()
{
return this->queue_;
}

template <ACE_SYNCH_DECL, class TIME_POLICY>
ACE_Message_Queue_Iterator<ACE_SYNCH_USE, TIME_POLICY>::ACE_Message_Queue_Iterator (ACE_Message_Queue <ACE_SYNCH_USE, TIME_POLICY> &q)
: queue_ (q)
Expand Down
3 changes: 3 additions & 0 deletions ACE/ace/Message_Queue_T.h
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,9 @@ class ACE_Message_Queue_Ex
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;

/// Returns a reference to the underlying queue.
virtual ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY> &queue ();

protected:
/// Implement this via an ACE_Message_Queue.
ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY> queue_;
Expand Down