本文整理汇总了C++中QueueEvent函数的典型用法代码示例。如果您正苦于以下问题:C++ QueueEvent函数的具体用法?C++ QueueEvent怎么用?C++ QueueEvent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了QueueEvent函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: te
TimerEvent Timer::QueueCallback(const QSharedPointer<TimerCallback> &callback,
int due_time, int period)
{
TimerEvent te(callback, due_time, period);
QueueEvent(te);
return te;
}
示例2: lock
HRESULT PpboxStream::Start(const PROPVARIANT& varStart)
{
SourceLock lock(m_pSource);
HRESULT hr = S_OK;
hr = CheckShutdown();
// Queue the stream-started event.
if (SUCCEEDED(hr))
{
hr = QueueEvent(MEStreamStarted, GUID_NULL, S_OK, &varStart);
}
if (SUCCEEDED(hr))
{
m_state = STATE_STARTED;
}
// If we are restarting from paused, there may be
// queue sample requests. Dispatch them now.
if (SUCCEEDED(hr))
{
hr = DispatchSamples();
}
return hr;
}
示例3: lock
HRESULT MPEG1Stream::Start(const PROPVARIANT& varStart)
{
SourceLock lock(m_pSource);
HRESULT hr = S_OK;
CHECK_HR(hr = CheckShutdown());
// Queue the stream-started event.
CHECK_HR(hr = QueueEvent(
MEStreamStarted,
GUID_NULL,
S_OK,
&varStart
));
m_state = STATE_STARTED;
// If we are restarting from paused, there may be
// queue sample requests. Dispatch them now.
CHECK_HR(hr = DispatchSamples());
done:
return hr;
}
示例4: l
void Viewer::AddNotification(const CacheNotification& notification) {
std::unique_lock<std::mutex> l(m_mutexNotification);
m_cacheNotifications.push_back(notification);
l.unlock();
QueueEvent(new wxCommandEvent(ImageLoadEvent));
}
示例5: QueueEvent
void CAsyncRequestQueue::TriggerProcessing()
{
if (m_inside_request)
return;
QueueEvent(new wxCommandEvent(fzEVT_PROCESSASYNCREQUESTQUEUE));
}
示例6: lock
void PyloadDataStore::setQueuePackages(const std::vector<PackageData>& queuePackages) {
boost::unique_lock<boost::shared_mutex> lock(m_mutex);
m_queuePackages = queuePackages;
lock.unlock();
wxCommandEvent* event = new wxCommandEvent(wxEVT_NETWORK, ID_QUEUE_PACKAGES);
QueueEvent(event);
}
示例7: NotifyMovieSizeChanged
void wxMediaBackendCommonBase::NotifyMovieLoaded()
{
NotifyMovieSizeChanged();
// notify about movie being fully loaded
QueueEvent(wxEVT_MEDIA_LOADED);
}
示例8: QueueEvent
void CContextControl::OnTabClosing(wxAuiNotebookEvent& event)
{
// Need to defer event, wxAUI would write to free'd memory
// if we'd actually delete tab and potenially the notebook with it
QueueEvent(new wxCommandEvent(fzEVT_TAB_CLOSING_DEFERRED, event.GetSelection()));
event.Veto();
}
示例9: ThrowIfError
void CMPEG1Stream::Pause()
{
ThrowIfError(CheckShutdown());
m_state = STATE_PAUSED;
ThrowIfError(QueueEvent(MEStreamPaused, GUID_NULL, S_OK, nullptr));
}
示例10: printf
void
Clock::SetClockState (ClockState state)
{
#if CLOCK_DEBUG
const char *states[] = { "Active", "Filling", "Stopped" };
printf ("Setting clock %p state to %s\n", this, states[state]);
#endif
this->state = state;
QueueEvent (CURRENT_STATE_INVALIDATED);
}
示例11: paintNow
void ProgressIndicator::mouseDown(wxMouseEvent &event)
{
this->value = (float)event.GetPosition().x / (float)width;
// Repaint directly - gives a nicer feedback to the user
paintNow();
wxCommandEvent pressEvent = wxCommandEvent(PI_SCROLL_CHANGED);
QueueEvent(pressEvent.Clone());
}
示例12: CMultiXWSStreamEvent
bool CMultiXWSStream::CallServiceNoWait(CMultiXAppMsg &Msg)
{
if(!IsRunning())
if(!Start())
return false;
CMultiXWSStreamEvent *Ev = new CMultiXWSStreamEvent(CMultiXWSStreamEvent::CallServiceFromMessage);
Msg.Keep();
Ev->m_MsgID = Msg.ID();
QueueEvent(Ev);
return true;
}
示例13: wxMessageBox
void MainFrame::myMessageBoxDelayed(const wxString &message,
const wxString &caption, int style, wxWindow *parent, int x, int y)
{
if (wxThread::IsMain())
wxMessageBox(message, caption, style, parent, x, y);
myMessageBoxEvent *event = new myMessageBoxEvent(
MY_MESSAGEBOX, message, caption, style, parent, x, y );
QueueEvent(event);
}
示例14: if
void gxSubject::Fire( gxEvent &aEvent, gxCallback aCallback )
{
if ( mFiringMode == on )
{
// If a specific callback was requested then only fire that one,
// otherwise Fire() will fire all callbacks.
aCallback.empty() ? aEvent.Fire() : aEvent.Fire( aCallback );
} else if ( mFiringMode == queue ) {
QueueEvent( aEvent );
} // Otherwise FiringMode is off
}
示例15: switch
void SjMyMusicConfigPage::OnListKeyDown(wxListEvent& event)
{
switch( event.GetKeyCode() )
{
case WXK_DELETE:
case WXK_BACK:
{
QueueEvent(new wxCommandEvent(wxEVT_COMMAND_MENU_SELECTED, IDC_IDXDELSOURCE));
}
break;
}
}