示例#1
0
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);
}
示例#2
0
	void DcpuThread::notifyStopped() {
		wxCommandEvent stoppedEvent(wxEVT_COMMAND_DCPU_STOPPED);
		eventHandler->AddPendingEvent(stoppedEvent);
	}