bool
NoOperation::isNoop(SgAsmInstruction *insn) const {
    if (!cpu_)
        return false;                                   // assume instruction has an effect if we can't prove otherwise.
    if (!insn)
        return true;
    return isNoop(std::vector<SgAsmInstruction*>(1, insn));
}
    //-------------------------------------------------------------------------
    RTPReceiverChannelAudio::~RTPReceiverChannelAudio()
    {
      if (isNoop()) return;

      ZS_LOG_DETAIL(log("destroyed"))
      mThisWeak.reset();

      cancel();
    }
Esempio n. 3
0
    //-------------------------------------------------------------------------
    MediaDevices::~MediaDevices()
    {
      if (isNoop()) return;

      ZS_LOG_DETAIL(log("destroyed"))
      mThisWeak.reset();

      cancel();
    }
Esempio n. 4
0
static void mirallLogCatcher(QtMsgType type, const QMessageLogContext &ctx, const QString &message) {
    auto logger = Logger::instance();
    if (!logger->isNoop()) {
        logger->doLog( qFormatLogMessage(type, ctx, message) ) ;
    }
}