万金油是什么意思| 安宫牛黄丸有什么作用| 刮宫后能吃什么水果| 孩子咬指甲什么原因| 为什么喝中药越来越胖| 断片是什么意思| 命犯桃花是什么意思| 荨麻疹涂什么药| 手发麻什么原因| 职业年金有什么用| 足三里在什么位置图片| 有何贵干是什么意思| 寸是什么单位| 咳嗽胸口疼是什么原因| 王加玉念什么| 为什么会长结节| 水瓶女和什么座最配| 什么是硬水| 土豆与什么食物相克| 时光如梭是什么意思| 姜粉什么时候喝最好| 羊水是什么颜色| 放屁特别臭是什么原因| 梦见自己在洗澡是什么意思| barbour是什么牌子| 眼镜框什么材质的好| 狗狗为什么会得细小| 无期徒刑什么意思| 保险属于什么行业| 带牙套是什么意思| 脚癣用什么药最好| 镜子是什么生肖| hpv病毒是什么| 戒烟有什么好处| 子宫癌筛查做什么检查| 什么什么大什么| auc是什么意思| 武汉属于什么地区| 自由奔放是什么生肖| 脾脏切除后有什么影响| 女人吃葛根粉有什么好处| 女人梦见搬家预示什么| 强是什么生肖| 梦魇是什么意思| 姜还是老的辣是什么意思| 冷冻跟冷藏有什么区别| 友尽是什么意思| 做孕检都检查什么项目| 胡萝卜什么时候种植| 四两棉花歇后语是什么| 梦见自己生男孩是什么意思| 兆以上的计数单位是什么| pab是什么意思| 蝴蝶的翅膀像什么| 内能是什么| 孕妇做无创是检查什么| 虾不能和什么东西一起吃| 什么是白肺| 喝什么茶可以降尿酸| 安全总监是什么级别| rna是什么意思| 护照拍照穿什么衣服| 膝关节疼痛用什么药效果最好| 痱子长什么样子图片| 过敏是什么样子的| 1926年属什么生肖| 出国要办什么证件| 双肾钙化灶是什么意思| 复活节是什么意思| 后中长是什么意思| 水豚吃什么| 9月13日是什么星座| 萎缩性胃炎可以吃什么水果| 张靓颖什么星座| 皮肤黄是什么原因| 林心如什么学历| 关东八大碗都有什么| 历年是什么意思| 什么是掌跖脓疱病| 无创是什么意思| 清明是什么意思| 什么时候泡脚最好| 香砂是什么| 睡醒后口苦是什么原因| 悟性高是什么意思| 尿白细胞阳性是什么意思| 公务员是什么职业| 孕晚期流鼻血是什么原因| 尿频吃什么药| 间作套种是什么意思| 炫是什么意思| 金钱草有什么功效| 打嗝和嗳气有什么区别| 蚕豆有什么营养| 尿毒症是什么原因导致的| 吃猪肝有什么好处和坏处| 近视手术有什么后遗症| 肛塞是什么| 六月出生的是什么星座| 前列腺肥大有什么症状| 虾吃什么食物| 正常人为什么会低血糖| 长寿花用什么肥料最好| 寒酸是什么意思| 当归有什么功效| 什么程度下病危通知书| 钦字五行属什么| 西装外套配什么裤子| 指甲长出来是白色的什么原因| a1微球蛋白偏高说明什么意思| 异麦芽酮糖醇是什么| 卤肉是什么肉| 梦到别人结婚是什么意思| 12岁属什么| 什么是护理学| 六月十三日是什么日子| 盖碗适合泡什么茶| 寻常疣是什么| 大拇指疼是什么原因| 甲醛什么味| 葡萄补什么| 政客是什么意思| 欲钱知吃月饼是什么生肖| 火烧是什么| 拔掉智齿有什么影响| 月经黑红色是什么原因| 头汗特别多是什么原因| apple什么意思| 知更鸟是什么意思| 何方珠宝是什么档次| 低密度脂蛋白偏高什么意思| 草果长什么样| 话说多了声音嘶哑是什么原因| 回族为什么不能吃猪肉| 吃什么好消化| 脾胃有火是什么症状| 子宫萎缩是什么原因| 皮革胃是什么意思| 凿壁偷光是什么意思| psa是什么意思| 冷的什么| 1976年是什么命| 送男生什么生日礼物好| 藏红花什么人不能喝| 泌乳是什么意思| 尿常规白细胞高是什么原因| 不停的放屁是什么原因| 斗地主是什么意思| 千里共婵娟什么意思| 人为什么会梦游| 宝宝什么时候开始长牙| 什么食物去湿气效果好| 昆仑玉什么颜色最贵| 7月11是什么星座| 琼瑶什么意思| 什么的竹笋| 蛇的贵人是什么生肖| 怀孕初期怕冷是什么原因| microsd卡是什么卡| 旅游穿什么鞋最舒服| 叶酸不能和什么一起吃| 突然恶心想吐是什么原因| 补充b族维生素有什么好处| 肌红蛋白是什么意思| 忌什么意思| 早孕三项检查什么| 阿司匹林和阿莫西林有什么区别| 杨公忌日是什么意思| 儿童办理护照需要什么材料| 心跳过快有什么危害| 冠心病吃什么药| 什么是蜘蛛痣图片| 五六天不拉大便是什么原因| 四月初八是什么节日| lgg是什么意思| 胃病烧心吃什么药好| 胆囊萎缩是什么原因| 人血馒头是什么意思| 扩胸运动有什么好处| 宠物螃蟹吃什么| 什么零食好吃| 亲故是什么意思| 黄色鞋子配什么颜色裤子| 梦到死去的亲人是什么意思| 呼吸道感染一般用什么消炎药| 1997年的牛是什么命| 皮肤黄的人适合穿什么颜色的衣服| 身上出汗多是什么原因| 正方形的纸能折什么| 参苓白术散治什么病| alp医学上是什么意思| 涤纶是什么布料| 黑五是什么| 斜率是什么| 芹菜不能和什么食物一起吃| 什么什么致志| 爱趴着睡觉是什么原因| 血脂高饮食应注意什么| 做梦掉粪坑什么征兆| 免疫系统由什么组成| 次氯酸钠是什么| 高压低是什么原因| 咳嗽吃什么药最好| 什么是职业病| 蛮夷是什么意思| 双源ct主要检查什么| 左眼屈光不正是什么意思| 平板和ipad有什么区别| 便宜的反义词是什么| 少帅是什么军衔| 梦见生孩子是什么意思| 射线是什么| 凤尾菜又叫什么菜| 粉丝炒什么好吃| 火龙果和什么相克| 梦见女婴儿是什么意思| 奶茶三兄弟是什么| 吃完螃蟹不能吃什么| 双侧骶髂关节致密性骨炎是什么病| 为什么会得肩周炎| 慢性胃炎和浅表性胃炎有什么区别| 睡不着觉是什么原因引起的| 电灯是什么时候发明的| 指甲起层是什么原因| 口臭吃什么| 7月4号什么星座| 女生下面流水是什么原因| 孩子喝什么牛奶有助于长高| 岁月如歌什么意思| e抗体阳性说明什么| 急性乳腺炎是什么原因引起的| 浅表性胃炎吃什么药效果好| 什么如泰山| 梵天是什么意思| 六月六日是什么节日| 万象更新是什么意思| 炸东西用什么淀粉| 肝病挂什么科| 猫睡在枕头旁说明什么| 做脑部检查挂什么科| 白细胞偏高有什么危害| 导弹是什么意思| 疝气是什么病| 智多星是什么意思| 叶赫那拉氏是什么旗| 手心发红是什么原因| 辰时是什么时候| 什么原因得湿疹| 石榴木是什么生肖| 男人鼻头有痣代表什么| 钠是什么东西| 臭粉是什么东西| 手不什么什么| 空腹吃西红柿有什么危害| 胎儿颈部可见u型压迹什么意思| 巫婆是什么意思| 肛门长肉球是什么原因| 水由什么组成| 补肾气吃什么药最好| 白带多什么原因| 串词是什么| 挚友是什么意思| 吃什么排出全身毒素| 2044年是什么年| 百度
The Open Group Base Specifications Issue 8
IEEE Std 1003.1-2024
Copyright ? 2001-2024 The IEEE and The Open Group

NAME

mtx_destroy, mtx_init — destroy and initialize a mutex

SYNOPSIS

#include <threads.h>

void mtx_destroy(mtx_t *
mtx);
int mtx_init(mtx_t *
mtx, int type);

DESCRIPTION

[CX] [Option Start] The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of POSIX.1-2024 defers to the ISO C standard. [Option End]

The mtx_destroy() function shall release any resources used by the mutex pointed to by mtx. A destroyed mutex object can be reinitialized using mtx_init(); the results of otherwise referencing the object after it has been destroyed are undefined. It shall be safe to destroy an initialized mutex that is unlocked. Attempting to destroy a locked mutex, or a mutex that another thread is attempting to lock, or a mutex that is being used in a cnd_timedwait() or cnd_wait() call by another thread, results in undefined behavior. The behavior is undefined if the value specified by the mtx argument to mtx_destroy() does not refer to an initialized mutex.

The mtx_init() function shall initialize a mutex object with properties indicated by type, whose valid values include:

mtx_plain
for a simple non-recursive mutex,
mtx_timed
for a non-recursive mutex that supports timeout,
mtx_plain|mtx_recursive
for a simple recursive mutex, or
mtx_timed|mtx_recursive
for a recursive mutex that supports timeout.

If the mtx_init() function succeeds, it shall set the mutex pointed to by mtx to a value that uniquely identifies the newly initialized mutex. Upon successful initialization, the state of the mutex shall become initialized and unlocked. Attempting to initialize an already initialized mutex results in undefined behavior.

[CX] [Option Start] See 2.9.9 Synchronization Object Copies and Alternative Mappings for further requirements.

These functions shall not be affected if the calling thread executes a signal handler during the call. [Option End]

RETURN VALUE

The mtx_destroy() function shall not return a value.

The mtx_init() function shall return thrd_success on success or thrd_error if the request could not be honored.

ERRORS

No errors are defined.


The following sections are informative.

EXAMPLES

None.

APPLICATION USAGE

A mutex can be destroyed immediately after it is unlocked. However, since attempting to destroy a locked mutex, or a mutex that another thread is attempting to lock, or a mutex that is being used in a cnd_timedwait() or cnd_wait() call by another thread results in undefined behavior, care must be taken to ensure that no other thread may be referencing the mutex.

RATIONALE

These functions are not affected by signal handlers for the reasons stated in XRAT B.2.3 Error Numbers.

FUTURE DIRECTIONS

None.

SEE ALSO

cnd_timedwait(), mtx_lock()

XBD <threads.h>

CHANGE HISTORY

First released in Issue 8. Included for alignment with the ISO/IEC 9899:2018 standard.

End of informative text.

 

return to top of page

UNIX? is a registered Trademark of The Open Group.
POSIX? is a Trademark of The IEEE.
Copyright ? 2001-2024 The IEEE and The Open Group, All Rights Reserved
[ Main Index | XBD | XSH | XCU | XRAT ]

紫外线是什么 虎属什么五行 什么米最贵 芙蕖是什么花 头上爱出汗是什么原因
双侧甲状腺弥漫病变是什么意思 pdc是什么意思 鼻塞流清鼻涕吃什么药 喝酒吃海带有什么危害 脱线是什么意思
鬼什么虎 肺炎吃什么药最有效 黑色的蛇是什么蛇 津液亏虚是什么意思 感冒流鼻涕咳嗽吃什么药好
太君是什么意思 猪头三是什么意思 吃什么性功能持久 什么人不宜吃海参 活动性肺结核是什么意思
测血糖挂号挂什么科hcv9jop4ns3r.cn 墨菲定律讲的是什么hcv9jop2ns7r.cn 1218是什么星座hcv8jop3ns5r.cn 肛门瘙痒用什么药膏hcv9jop0ns2r.cn 上海副市长什么级别hcv9jop3ns9r.cn
濒死感是什么感觉hcv8jop3ns8r.cn 小孩积食吃什么药hcv8jop5ns4r.cn 胃镜预约挂什么科hcv9jop4ns1r.cn 出国用什么翻译软件好hcv9jop6ns3r.cn 摸摸唱是什么hcv9jop2ns4r.cn
什么是汉服helloaicloud.com 三合局是什么意思bfb118.com 走路腿软没劲是什么原因引起的hcv8jop1ns3r.cn 冲正是什么意思hcv9jop5ns1r.cn 受惊吓吃什么药hcv9jop5ns7r.cn
百香果的籽有什么功效hcv9jop1ns7r.cn 采阴补阳是什么意思hcv8jop3ns8r.cn 50元人民币什么时候发行的hcv9jop1ns5r.cn 绿茶什么时候喝最好hcv9jop1ns4r.cn 菜板什么材质的好hcv8jop1ns1r.cn
百度