当前位置: 首页>>代码示例>>C++>>正文


C++ QueueEvent函数代码示例

本文整理汇总了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;
 }
开发者ID:ASchurman,项目名称:Dissent,代码行数:7,代码来源:Timer.cpp

示例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;
}
开发者ID:huangyt,项目名称:MyProjects,代码行数:27,代码来源:PpboxStream.cpp

示例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;
}
开发者ID:Essjay1,项目名称:Windows-classic-samples,代码行数:25,代码来源:MPEG1Stream.cpp

示例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));
	}
开发者ID:poppeman,项目名称:Pictus,代码行数:7,代码来源:viewer.cpp

示例5: QueueEvent

void CAsyncRequestQueue::TriggerProcessing()
{
	if (m_inside_request)
		return;

	QueueEvent(new wxCommandEvent(fzEVT_PROCESSASYNCREQUESTQUEUE));
}
开发者ID:Typz,项目名称:FileZilla,代码行数:7,代码来源:asyncrequestqueue.cpp

示例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);
}
开发者ID:cybe,项目名称:moarload,代码行数:7,代码来源:pyload_data_store.cpp

示例7: NotifyMovieSizeChanged

void wxMediaBackendCommonBase::NotifyMovieLoaded()
{
    NotifyMovieSizeChanged();

    // notify about movie being fully loaded
    QueueEvent(wxEVT_MEDIA_LOADED);
}
开发者ID:DumaGit,项目名称:winsparkle,代码行数:7,代码来源:mediactrlcmn.cpp

示例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();
}
开发者ID:oneminot,项目名称:filezilla3,代码行数:8,代码来源:context_control.cpp

示例9: ThrowIfError

void CMPEG1Stream::Pause()
{
    ThrowIfError(CheckShutdown());

    m_state = STATE_PAUSED;

    ThrowIfError(QueueEvent(MEStreamPaused, GUID_NULL, S_OK, nullptr));
}
开发者ID:badreddine-dlaila,项目名称:Windows-8.1-Universal-App,代码行数:8,代码来源:MPEG1Stream.cpp

示例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);
}
开发者ID:kangaroo,项目名称:moon,代码行数:10,代码来源:clock.cpp

示例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());
}
开发者ID:las3rlars,项目名称:wxSpot,代码行数:10,代码来源:ProgressIndicator.cpp

示例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;
}
开发者ID:donyriyanto,项目名称:bforce8583,代码行数:11,代码来源:MultiXWSStream.cpp

示例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);
}
开发者ID:vi-k,项目名称:vi-k.scan-analitics,代码行数:11,代码来源:MainFrame.cpp

示例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
}
开发者ID:Izhaki,项目名称:gefriCPP,代码行数:11,代码来源:gxSubject.cpp

示例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;
	}
}
开发者ID:r10s,项目名称:silverjuke,代码行数:12,代码来源:mymusic.cpp


注:本文中的QueueEvent函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。