本文整理汇总了C++中QTSSModule::GetQueueElem方法的典型用法代码示例。如果您正苦于以下问题:C++ QTSSModule::GetQueueElem方法的具体用法?C++ QTSSModule::GetQueueElem怎么用?C++ QTSSModule::GetQueueElem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QTSSModule
的用法示例。
在下文中一共展示了QTSSModule::GetQueueElem方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoInitRole
void QTSServer::DoInitRole()
{
QTSS_RoleParams theInitParams;
theInitParams.initParams.inServer = this;
theInitParams.initParams.inPrefs = fSrvrPrefs;
theInitParams.initParams.inMessages = fSrvrMessages;
theInitParams.initParams.inErrorLogStream = &sErrorLogStream;
QTSS_ModuleState theModuleState;
theModuleState.curRole = QTSS_Initialize_Role;
theModuleState.curTask = NULL;
OSThread::SetMainThreadData(&theModuleState);
for (UInt32 x = 0; x < QTSServerInterface::GetNumModulesInRole(QTSSModule::kInitializeRole); x++)
{
QTSSModule* theModule = QTSServerInterface::GetModule(QTSSModule::kInitializeRole, x);
theInitParams.initParams.inModule = theModule;
theModuleState.curModule = theModule;
QTSS_Error theErr = theModule->CallDispatch(QTSS_Initialize_Role, &theInitParams);
if (theErr != QTSS_NoErr)
{
// If the module reports an error when initializing itself,
// delete the module and pretend it was never there.
QTSSModuleUtils::LogError(qtssWarningVerbosity, qtssMsgInitFailed, theErr,
theModule->GetValue(qtssModName)->Ptr);
sModuleQueue.Remove(theModule->GetQueueElem());
delete theModule;
}
}
OSThread::SetMainThreadData(NULL);
}
示例2: DoInitRole
void QTSServer::DoInitRole()
{
QTSS_RoleParams theInitParams;
theInitParams.initParams.inServer = this;
theInitParams.initParams.inPrefs = fSrvrPrefs;
theInitParams.initParams.inMessages = fSrvrMessages;
theInitParams.initParams.inErrorLogStream = &sErrorLogStream;
QTSS_ModuleState theModuleState;
theModuleState.curRole = QTSS_Initialize_Role;
theModuleState.curTask = NULL;
OSThread::SetMainThreadData(&theModuleState);
//
// Add the OPTIONS method as the one method the server handles by default (it handles
// it internally). Modules that handle other RTSP methods will add
QTSS_RTSPMethod theOptionsMethod = qtssOptionsMethod;
(void)this->SetValue(qtssSvrHandledMethods, 0, &theOptionsMethod, sizeof(theOptionsMethod));
// For now just disable the SetParameter to be compatible with Real. It should really be removed only for clients that have problems with their SetParameter implementations like (Real Players).
// At the moment it isn't necesary to add the option.
// QTSS_RTSPMethod theSetParameterMethod = qtssSetParameterMethod;
// (void)this->SetValue(qtssSvrHandledMethods, 0, &theSetParameterMethod, sizeof(theSetParameterMethod));
for (UInt32 x = 0; x < QTSServerInterface::GetNumModulesInRole(QTSSModule::kInitializeRole); x++)
{
QTSSModule* theModule = QTSServerInterface::GetModule(QTSSModule::kInitializeRole, x);
theInitParams.initParams.inModule = theModule;
theModuleState.curModule = theModule;
QTSS_Error theErr = theModule->CallDispatch(QTSS_Initialize_Role, &theInitParams);
if (theErr != QTSS_NoErr)
{
// If the module reports an error when initializing itself,
// delete the module and pretend it was never there.
QTSSModuleUtils::LogError(qtssWarningVerbosity, qtssMsgInitFailed, theErr,
theModule->GetValue(qtssModName)->Ptr);
sModuleQueue.Remove(theModule->GetQueueElem());
delete theModule;
}
}
OSThread::SetMainThreadData(NULL);
}