Lines Matching refs:newTask
132 Task* newTask = new Task(); in MessageReceived() local
133 newTask->rowItem = rowItem; in MessageReceived()
134 newTask->name = rowItem->Name(); in MessageReceived()
135 newTask->resultName = newTask->name; in MessageReceived()
137 newTask->taskType = DISABLE_REPO; in MessageReceived()
138 newTask->taskParam = newTask->name; in MessageReceived()
140 newTask->taskType = ENABLE_REPO; in MessageReceived()
141 newTask->taskParam = rowItem->Url(); in MessageReceived()
143 newTask->owner = this; in MessageReceived()
144 newTask->fTimer = NULL; in MessageReceived()
147 fTaskQueue.AddItem(newTask); in MessageReceived()
148 BString threadName(newTask->taskType == ENABLE_REPO ? in MessageReceived()
150 newTask->threadId = spawn_thread(_DoTask, threadName.String(), in MessageReceived()
151 B_NORMAL_PRIORITY, (void*)newTask); in MessageReceived()
153 if (newTask->threadId < B_OK) in MessageReceived()
156 threadResult = resume_thread(newTask->threadId); in MessageReceived()
158 newTask->fTimer = new TaskTimer(fMessenger, newTask); in MessageReceived()
159 newTask->fTimer->Start(newTask->name); in MessageReceived()
166 kill_thread(newTask->threadId); in MessageReceived()
169 _RemoveAndDelete(newTask); in MessageReceived()