Changeset View
Changeset View
Standalone View
Standalone View
processcore/processes.cpp
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Line(s) | 348 | while( i.hasNext()) { | |||
---|---|---|---|---|---|
349 | //We saw these pids last time, but not this time. That means we have to mark them for deletion now | 349 | //We saw these pids last time, but not this time. That means we have to mark them for deletion now | ||
350 | pid = i.next(); | 350 | pid = i.next(); | ||
351 | d->markProcessesAsEnded(pid); | 351 | d->markProcessesAsEnded(pid); | ||
352 | } | 352 | } | ||
353 | d->mEndedProcesses = d->mProcessedLastTime; | 353 | d->mEndedProcesses = d->mProcessedLastTime; | ||
354 | } | 354 | } | ||
355 | 355 | | |||
356 | d->mProcessedLastTime = beingProcessed; //update the set for next time this function is called | 356 | d->mProcessedLastTime = beingProcessed; //update the set for next time this function is called | ||
357 | return; | 357 | emit updated(); | ||
358 | } | 358 | } | ||
359 | 359 | | |||
360 | void Processes::Private::markProcessesAsEnded(long pid) | 360 | void Processes::Private::markProcessesAsEnded(long pid) | ||
361 | { | 361 | { | ||
362 | Q_ASSERT(pid >= 0); | 362 | Q_ASSERT(pid >= 0); | ||
363 | 363 | | |||
364 | Process *process = mProcesses.value(pid); | 364 | Process *process = mProcesses.value(pid); | ||
365 | if(!process) | 365 | if(!process) | ||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |