datacommsserver/esockserver/test/providers/dummy/src/dummypr_factory.cpp
branchRCL_3
changeset 23 cbb19216b74d
parent 18 9644881fedd0
child 25 9d7ce34704c8
equal deleted inserted replaced
21:07656293a99c 23:cbb19216b74d
   327 	}
   327 	}
   328 
   328 
   329 ACommsFactoryNodeId* CDummyFlowFactory::DoFindOrCreateObjectL(TFactoryQueryBase& aQuery)
   329 ACommsFactoryNodeId* CDummyFlowFactory::DoFindOrCreateObjectL(TFactoryQueryBase& aQuery)
   330 	{
   330 	{
   331 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
   331 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
       
   332 	User::After(0.3*1000000); //Artificial yield to test cancellation. Do not remove.
       
   333 
   332 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   334 	if(query.iMessageId != TCFServiceProvider::TCommsBinderRequest::Id())
   333 		{
   335 		{
   334 		//the factory only reacts to creation triggered by TCommsBinderRequest
   336 		//the factory only reacts to creation triggered by TCommsBinderRequest
   335 		//otherwise it bails out - flow not needed for the stack setup.
   337 		//otherwise it bails out - flow not needed for the stack setup.
   336 		return NULL;
   338 		return NULL;