Example #1
0
/** Get iterator to element beyond end of message queue list.
 * @return iterator to element beyond end of message queue list
 * @exception NotLockedException thrown if message queue is not locked during this operation.
 */
MessageQueue::MessageIterator
MessageQueue::end()
{
	if (mutex_->try_lock()) {
		mutex_->unlock();
		throw NotLockedException("Message queue must be locked to get end iterator.");
	}
	return MessageIterator();
}
Example #2
0
 MessageIterator end()
 {
     return MessageIterator(_split_points.end() - 1);
 }
Example #3
0
 MessageIterator begin()
 {
     return MessageIterator(_split_points.begin());
 }
Example #4
0
 MessageIterator operator++(int)
 {
     return MessageIterator(*_cursor++);
 }
Example #5
0
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
MessageIterator Message::iter() const {
    return MessageIterator(iterImpl());
}