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; }
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); }
AbstractQoreNode* StatementBlock::exec(ExceptionSink* xsink) { AbstractQoreNode* return_value = 0; execImpl(&return_value, xsink); return return_value; }
void IStringReplacer::exec(QString &target, const QString &after) const { execImpl(target, after); }