金牌会员
 
- 积分
- 1276
- 金钱
- 1276
- 注册时间
- 2016-5-31
- 在线时间
- 499 小时
|
发表于 2016-6-21 14:00:24
|
显示全部楼层
ucosiii中任意优先级的任务等待某一信号量,请使用下边的函数调用:
OSSemPendAbort (OS_SEM *p_sem, OS_OPT opt, OS_ERR *p_err)
如有疑问,请参见这个函数的描述:
* ABORT WAITING ON A SEMAPHORE
*
* Description: This function aborts & readies any tasks currently waiting on a semaphore.
This function should be used to fault-abort the wait on the semaphore,
* rather than to normally signal the semaphore via OSSemPost().
*
|
|