void Bundle::stop() { if (_state != BUNDLE_ACTIVE) throw BundleStateException("stop() requires ACTIVE state"); StateChange stateChange(_state, BUNDLE_STOPPING); BundleEvent stoppingEvent(this, BundleEvent::EV_BUNDLE_STOPPING); events().bundleStopping(this, stoppingEvent); _loader.stopBundle(this); stateChange.commit(BUNDLE_RESOLVED); BundleEvent stoppedEvent(this, BundleEvent::EV_BUNDLE_STOPPED); events().bundleStopped(this, stoppedEvent); }
void DcpuThread::notifyStopped() { wxCommandEvent stoppedEvent(wxEVT_COMMAND_DCPU_STOPPED); eventHandler->AddPendingEvent(stoppedEvent); }