Пример #1
0
void SimpleTaskProgress::update(const ofx::TaskProgressEventArgs& args)
{
    taskId = args.getTaskId();
    name = args.getTaskName();
    state = args.getState();
    progress = args.getProgress();
}
Пример #2
0
void FileImporter::onTaskProgress(const ofx::TaskProgressEventArgs& args){
    ofScopedLock sl(mutex);
    taskProgress[args.getTaskId()] = args.getProgress();
    updateProgress();
    
}