We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f720283 commit b01337bCopy full SHA for b01337b
src/inet/clock/common/ClockEvent.cc
@@ -16,6 +16,8 @@ Register_Class(ClockEvent)
16
17
void ClockEvent::execute()
18
{
19
+ cSimpleModule *targetModule = check_and_cast<cSimpleModule *>(getTargetObject());
20
+ cContextSwitcher contextSwitcher(targetModule);
21
if (clock != nullptr) {
22
clocktime_t clockTime = clock->getClockTime();
23
EV_DEBUG << "Executing clock event" << EV_FIELD(clockTime) << EV_FIELD(event, this) << EV_ENDL;
0 commit comments