//------------------------------------------------------------------------ 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; }
void LodWorkQueueWorker::addRequestToQueue( LodWorkQueueRequest* request ) { WorkQueue* wq = Root::getSingleton().getWorkQueue(); wq->addRequest(mChannelID, 0, Any(request),0,false,true); }