Ejemplo n.º 1
0
	//------------------------------------------------------------------------
	BackgroundProcessTicket ResourceBackgroundQueue::addRequest(ResourceRequest& req)
	{
		WorkQueue* queue = Root::getSingleton().getWorkQueue();

		Any data(req);

		WorkQueue::RequestID requestID = 
			queue->addRequest(mWorkQueueChannel, (uint16)req.type, data);


		mOutstandingRequestSet.insert(requestID);

		return requestID;
	}
Ejemplo n.º 2
0
 void LodWorkQueueWorker::addRequestToQueue( LodWorkQueueRequest* request )
 {
     WorkQueue* wq = Root::getSingleton().getWorkQueue();
     wq->addRequest(mChannelID, 0, Any(request),0,false,true);
 }