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 #22

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 @@ -63,7 +63,7 @@ ISR 或者线程可能需要延迟一段指定的事时间后(而不是立即

* **工作队列指示器**:用于标识需要提交到的工作队列。

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

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

Expand Down