chxavthread.cpp
来自「symbian 下的helix player源代码」· C++ 代码 · 共 53 行
CPP
53 行
/*============================================================================*
*
* (c) 1995-2002 RealNetworks, Inc. Patents pending. All rights reserved.
*
*============================================================================*/
/*
Helpers for 'pumping' active object requests
*/
// Symbian includes...
#include <e32base.h>
#include <e32std.h>
// Helix includes...
#include "hxassert.h"
// Other includes...
#include "chxavthread.h"
////////////////////////////////////////////
//
// service next active object request for this thread,
// blocking if necessary
//
void CHXAvThread::WaitAndProcessNextRequest()
{
User::WaitForAnyRequest();
TInt errorIgnored;
TBool bAtLeastOne = CActiveScheduler::RunIfReady(errorIgnored, 0);
}
////////////////////////////////////////////
//
// service outstanding active object requests
// for this thread; do not block
//
void CHXAvThread::ProcessPendingRequests()
{
//
// make sure there are outstanding requests before
// we wait so we are guarenteed not to block
//
while( 0 != RThread().RequestCount() )
{
WaitAndProcessNextRequest();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?