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: Change event generation inside the framework of Rhapsody?
Topic Summary:
Created On: 2-Apr-2007 06:38
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.
 2-Apr-2007 06:38
User is offline View Users Profile Print this message


Christoph Schmidt

Posts: 10
Joined: 11-Jul-2005

Hi,

My problem is that I don't like the fact that every generation of an event
is done with "new" and "delete". I don't want to overload "new/delete"
because this would be a global solution and other instances should still
use the normal "new/delete".

So is there an easy solution for changing "new/delete" of events by using my own memory manager? Is it possible to change only
some parts in OMReactive and OXFGenMacros.h or do I have to change
more with my own memory manager?

Thanks
Christoph
Report this to a Moderator Report this to a Moderator
 2-Apr-2007 12:17
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

Hi Christoph,

have you looked at using the IDF (Interrupt Driven Framework)? It can be used with static memory allocation for events.

Regards,

Ian
Report this to a Moderator Report this to a Moderator
 3-Apr-2007 09:08
User is offline View Users Profile Print this message


Christoph Schmidt

Posts: 10
Joined: 11-Jul-2005

Hello Ian,

well the IDF is too restricted for my project. But I found a solution:
The Rhapsody framework supports a way to implement a class
of the type OMAbstractMemoryAllocator. By using this new/delete
is overloaded within some classes (OMEvent, OMReactive, OMList etc.)
So I can use a static memory allocation provided by my RTOS
(ThreadX).

Regards,
Christoph
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.