MC-Basic:COMMON SHARED ... AS SEMAPHORE/zh-hans

From SoftMC-Wiki
< MC-Basic:COMMON SHARED ... AS SEMAPHORE
Revision as of 09:41, 26 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == COMMON SHARED <''semaphore name''> AS SEMAPHORE == 适用版本 == 所有版本<br> 从版本4.9.7起支持信号数组       ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

缩写

格式

COMMON SHARED <semaphore name> AS SEMAPHORE

适用版本

所有版本
从版本4.9.7起支持信号数组       

描述

在系统中定义新的信号量变量。 访问此变量类型只有两个函数:SEMTAKE和SEMGIVE。 此数据类型不允许使用其他操作(例如打印,参数)。

类型

取值范围

单位

默认

使用范围

Configuration, Task, Terminal
从4.5.17版起,全局(common shared)声明也可以从库上下文中获得。

限制

例子

-->common shared sem as semaphore
-->?semtake(sem)
1
-->semgive(sem)
-->

参见