Пример #1
0
void ThreadOperation::exec()
{
    QMutexLocker lockerForSync(&mutexRunning);

    emit started();

    qDebug() << className() << "is started";

    execImpl();

    if (!isStopped()) {
        emit completed();

        qDebug() << className() << "is completed";

        return;
    }

    emit aborted();

    qDebug() << className() << "is aborted";

    QMutexLocker locker(&mutex);

    stopped = false;

    qDebug() << className() + "::stopped" << stopped;
}
Пример #2
0
int AbstractStatement::exec(AbstractQoreNode **return_value, ExceptionSink *xsink) {
   printd(1, "AbstractStatement::exec() this: %p file: %s line: %d\n", this, loc.file, loc.start_line);
   QoreProgramLocationHelper l(loc);

#ifdef QORE_MANAGE_STACK
   if (check_stack(xsink))
      return 0;
#endif
   pthread_testcancel();

   QoreProgramBlockParseOptionHelper bh(pwo.parse_options);
   return execImpl(return_value, xsink);
}
Пример #3
0
AbstractQoreNode* StatementBlock::exec(ExceptionSink* xsink) {
   AbstractQoreNode* return_value = 0;
   execImpl(&return_value, xsink);
   return return_value;
}
Пример #4
0
void IStringReplacer::exec(QString &target, const QString &after) const
{
    execImpl(target, after);
}