Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Problem with OMQueue
Topic Summary:
Created On: 16-Sep-2005 08:09
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 16-Sep-2005 08:09
User is offline View Users Profile Print this message


Jesper Gissel

Posts: 88
Joined: 20-Jul-2005

Hi,

The following code fragment is partly from an eCos adapter I'm working on:

[FONT=Courier New]OMBolean shouldGrow = FALSE;
int initSize = 100;

OMQueue<void*> m_theQueue;

m_theQueue = OMQueue<void*>(shouldGrow, initSize);[/FONT]

What I expect, is to get a (message)Queue that can hold 100 elements.
But it turns out, that it's only able to hold 99 elements, before m_theQueue->isFull() returns TRUE!

I'm I missing something or is this a bug in OMQueue ?!

-------------------------
Jesper Gissel
Johnson Controls Denmark, Marine Controls
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.