![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Hi Christoph,
have you looked at using the IDF (Interrupt Driven Framework)? It can be used with static memory allocation for events. Regards, Ian |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.