Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workqueues.rst #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/kernel/threads/workqueues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ISR 或者线程可能需要延迟一段指定的事时间后(而不是立即

延迟工作项的初始化和提交过程与标准的工作项是类似的,只是所使用的内核 API 略有区别。当发出提交请求时,内核会初始化一个超时机制,当指定的延迟达到时就会触发它。当超时发送时,内核会将延迟工作项提交到指定的工作队列中。之后,它会保持挂起状态,知道被以标准方式处理。

ISR 或者线程可以 **取消** 它提交的延迟工作项,但是前提是该工作项的超时计数扔在继续。取消后,超时计数将停止计数,指定的工作也不会被执行。
ISR 或者线程可以 **取消** 它提交的延迟工作项,但是前提是该工作项的超时计数仍在继续。取消后,超时计数将停止计数,指定的工作也不会被执行。

取消已经到期的延时工作项不会有任何效果;除非工作项被移除并被工作队列的线程处理了,否它将一直保持挂起状态。因此,当工作项的超时服务到期后,它已经被处理过了,所以不能被取消。

Expand Down