コード例 #1
0
ファイル: MasterAdapter.cpp プロジェクト: DSIHarman/DSI
void MasterAdapter::removePending(Notifier& notifier)
{
   /*
    * removing all jobs from the queue and returning an error.
    * error handling is don in the servicebroker thread
    */
   Job* job = mQueue.pop();
   while( job )
   {
      job->status = EIO;
      notifier.jobFinished(*job);
      job = mQueue.pop();
   }
}
コード例 #2
0
ファイル: MasterAdapter.cpp プロジェクト: DSIHarman/DSI
bool MasterAdapter::execute(Job& job, Notifier& notifier)
{
   bool rc = mConnector->execute(job);
   notifier.jobFinished(job);
   return rc;
}