![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Monitoring the event queue? Topic Summary: Created On: 20-Dec-2004 20:07 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi Everyone!
what's the best way to monitor the load of an event queue in a (non-animated) Rhapsody model during runtime? Regards, Martin (L.) ---------------------------- Martin Lokietsch I-Logix |
|
![]() |
|
![]() |
|
Hi Martin,
Below is a similar solution that Amos sent me for stepping through an event queue and modifying its events. Solution 1359 in the Knowledge Base also contains this information. Regards, Steve If your class is an active class, the following code should work: OMList<OMEvent*> messageList; #ifdef _OMINSTRUMENT eventQueue->getOmQueue()->getMessageList(messageList); // not guarded #else eventQueue->getMessageList(messageList); // not guarded #endif OMIterator<OMEvent*> iter(messageList); for ( ; (*iter) != NULL; ++iter) { OMEvent* ev = (*iter); // your code } |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Monitoring the event queue?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.