Ejemplo n.º 1
0
Archivo: main.cpp Proyecto: ic-hep/emi3
void taskStatusUpdater(int time) {
    while (1) {
        if (strArray[0].length() > 0) {
	    logStream << fileManagement->timestamp() << "INFO Sending back to the server url-copy is still alive!" << '\n';
            reporter.constructMessageUpdater(job_id, strArray[0]);
        } else {
	    logStream << fileManagement->timestamp() << "INFO Sending back to the server url-copy is still alive!" << '\n';	
            reporter.constructMessageUpdater(job_id, file_id);
        }
        boost::this_thread::sleep(boost::posix_time::seconds(time));
    }
}