链接中断

链接中断[链接]

在指定WSTP连接的另一端向程序发送中断。

细节

  • 链接必须是活动的链接对象,由以下函数返回LinkLaunch(链接启动)链接.
  • 这取决于外部程序来决定它将如何处理中断。
  • 默认情况下,从WSTP模板创建的外部程序将设置全局变量WSAbort(WSAbort)如果他们收到中止。

示例

基本示例  (1)

启动子公司Wolfram Language内核进程:

读取第一个数据包:

发送无限循环程序:

使用链接ReadyQ检查程序是否已完成:

发送中断:

进程已停止,出现中断菜单:

关闭链接:

Wolfram Research(1996),LinkInterrupt,Wolfram语言函数,https://reference.wolfram.com/language/ref/LinkInterrupt.html。

文本

Wolfram Research(1996),LinkInterrupt,Wolfram语言函数,https://reference.wolfram.com/language/ref/LinkInterrupt.html。

CMS公司

沃尔夫拉姆语言。1996年,《LinkInterrupt》,Wolfram语言与系统文档中心。Wolfram研究。https://reference.wolfram.com/language/ref/LinkInterrupt.html。

亚太地区

沃尔夫拉姆语言。(1996). 链接中断。Wolfram语言与系统文档中心。检索自https://reference.wolfram.com/language/ref/LinkInterrupt.html参考文件

BibTeX公司

@misc{reference.wolfram_2024_linkinterrupt,author=“wolfram Research”,title=“{linkinterrupt}”,year=“1996”,howpublished=“\url{https://reference.wolfram.com/language/ref/linkinterrupt.html}”]}

BibLaTeX公司

@online{reference.wolfram_2024_linkinterrupt,organization={wolfram Research},title={linkinterrupt},year={1996},url={https://reference.jolfram.com/language/ref/linkinterrupt.html},note=[访问时间:2024年9月21日]}