This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: 如何终止一个正在阻塞的任务

Part Number: CC2640R2F

如题,我创建了一个 uart_Task(任务),用于UART的收发,接收采用阻塞方式,当UART没有数据收进来的时候,该任务将一直处于阻塞状态。

现在我想从其他任务终止这个uart_Task,可是由于该uart_Task已经处于阻塞状态,无法自行执行Task_exit()。

我的问题是:除了向UART发送数据以解除阻塞令其可以执行Task_exit()以外,还有没有其他的方法可以从其他位置(其他任务处)强行将该任务终止掉。