コード例 #1
0
static bool checkLauncher(double startTime, double timeout,
                          uint64_t launchId, MpiOperatorContext* ctx)
{
    boost::shared_ptr<MpiLauncher> launcher(ctx->getLauncher(launchId));
    if (launcher && !launcher->isRunning()) {
            throw SYSTEM_EXCEPTION(SCIDB_SE_INTERNAL, SCIDB_LE_OPERATION_FAILED)
                << "MPI launcher process";
    }
    checkForTimeout(startTime, timeout, launchId, ctx);

    return true;
}
コード例 #2
0
ファイル: http.cpp プロジェクト: mgsxx/QEverCloudGenerator
ReplyFetcher::ReplyFetcher(): success_(false), httpStatusCode_(0)
{
    ticker_ = new QTimer(this);
    connect(ticker_, SIGNAL(timeout()), this, SLOT(checkForTimeout()));
}