OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4308|回复: 2

调试时,中断函数释放信号量,再调用任务切换函数,执行完,进入不到等待此信号量的任务中,为什么呢?

[复制链接]

1

主题

1

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2021-11-10
在线时间
0 小时
发表于 2021-11-14 21:58:48 | 显示全部楼层 |阅读模式
调试时,中断函数释放信号量,再调用任务切换函数,执行完,进入不到等待此信号量的任务中,为什么呢?
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

21

主题

151

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
423
金钱
423
注册时间
2017-4-1
在线时间
73 小时
发表于 2021-12-29 16:03:30 | 显示全部楼层
回复 支持 反对

使用道具 举报

0

主题

17

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
263
金钱
263
注册时间
2019-9-22
在线时间
53 小时
发表于 2021-12-30 10:02:57 | 显示全部楼层
μC-OS-III 3.06.01 API Reference.pdf, 第45页最下面一行可能对你有用,我传不了图片.
Do not call the scheduler after the post, therefore the caller is resumed even if the mutexwas posted and tasks of higher priority are waiting for the mutex.
Use this option if the task calling OSMutexPost() will be doing additional posts, if theuser does not want to reschedule until all is complete, and multiple posts should take effect simultaneously.
μC-OS-III 3.06.01 API Reference.pdf,,276页
OSSched() can only be called by task-level code. Also, if the scheduler is locked (i.e., OSSchedLock() was previously called), then OSSched() will have no effect.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-26 05:53

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表