您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ stopExecutor函数代码示例

51自学网 2021-06-03 08:24:04
  C++
这篇教程C++ stopExecutor函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中stopExecutor函数的典型用法代码示例。如果您正苦于以下问题:C++ stopExecutor函数的具体用法?C++ stopExecutor怎么用?C++ stopExecutor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了stopExecutor函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: stopExecutor

RPCConsole::~RPCConsole(){    GUIUtil::saveWindowGeometry("nRPCConsoleWindow", this);    emit stopExecutor();    delete ui;}
开发者ID:darthcoin,项目名称:jmag,代码行数:6,


示例2: logMsg

void ExecutorInterface::sayOrEnqueue(const TextItem& textItem){  const std::string& outputName = textItem.getOutputName();  if (trim(outputName).empty())    {      logMsg(LOG_WARNING, "Received text item to play, but output name is empty, ignoring...");      return;    }  if (!m_outputSet.hasOutput(outputName))    {      logMsg(LOG_ERR, "Received text item, but output name is unknown (/'%s/'), ignoring...", outputName.c_str());      return;    }  if (m_pid == 0)//executor is not started;    {      logMsg(LOG_DEBUG, "Having text to say, but executor is not running, Launching it...");      runExecutor();      if (m_pid == 0)	{	  logMsg(LOG_ERR, "Executor launch failed, probably there are problems! Text block will be ignored");	  return;	}    }  if (m_pipe == 0)    {      logMsg(LOG_ERR, "We are sure the executor is running, but pipe to it is not valid, stopping executor and waiting next text block.");      stopExecutor();      return;    }  const std::string synthCommand = m_outputSet.prepareSynthCommand(outputName, textItem);  const std::string playerCommand = m_outputSet.preparePlayerCommand(outputName, m_playerType, textItem);  const std::string text = m_outputSet.prepareText(outputName, textItem);  if (trim(synthCommand).empty())    {      logMsg(LOG_WARNING, "Prepared synth command to be sent to executor is empty");      return;    }  if (trim(playerCommand).empty())    {      logMsg(LOG_WARNING, "Prepared player command to be sent to executor is empty");      return;    }  logMsg(LOG_DEBUG, "Text and command line prepared to be sent to executor:");  logMsg(LOG_DEBUG, "Synth command line: %s;", synthCommand.c_str());  logMsg(LOG_DEBUG, "Player command line: %s;", playerCommand.c_str());  logMsg(LOG_DEBUG, "Text: %s.", text.c_str());  CommandHeader header;  header.code = COMMAND_SAY;  header.param1 = synthCommand.length() + 1;//+1 to reflect ending zero;  header.param2 = playerCommand.length() + 1;//+1 to reflect ending zero;  header.param3 = text.length() + 1;//+1 to reflect ending zero;  if (!sendBlockToExecutor(&header, sizeof(CommandHeader), "/'SAY/' command header"))    return;  if (!sendBlockToExecutor(synthCommand.c_str(), synthCommand.length() + 1, "synth command"))    return;  if (!sendBlockToExecutor(playerCommand.c_str(), playerCommand.length() + 1, "player command"))    return;  if (!sendBlockToExecutor(text.c_str(), text.length() + 1, "text"))    return;  logMsg(LOG_DEBUG, "Command was successfully sent to executor!");}
开发者ID:luwrain,项目名称:voiceman,代码行数:61,



注:本文中的stopExecutor函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ stopMusic函数代码示例
C++ stop函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。