/* * Project: JobMarket * Description: asynchronous Server/Controller/Client-approach to parallel computing, based on boost::asio * Copyright (C) 2013 Frederik Heber. All rights reserved. * */ /* * NoOpJob.cpp * * Created on: Sep 10, 2013 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif //#include "CodePatterns/MemDebug.hpp" // include headers that implement a archive in simple text format // otherwise BOOST_CLASS_EXPORT_IMPLEMENT has no effect #include #include #include "JobMarket/Jobs/NoOpJob.hpp" NoOpJob::NoOpJob() : FragmentJob(JobId::IllegalJob) {} NoOpJob::NoOpJob(const JobId_t _JobId) : FragmentJob(_JobId) {} NoOpJob::~NoOpJob() {} FragmentResult::ptr NoOpJob::Work() { FragmentResult::ptr s(new FragmentResult(getId(), std::string("NoOp"))); s->exitflag = 0; s->time_Work = 0.; return s; } // we need to explicitly instantiate the serialization functions as // its is only serialized through its base class FragmentJob BOOST_CLASS_EXPORT_IMPLEMENT(NoOpJob)