Skip to content

refactor(axtask): replace wait queue boolean wake flags with explicit policy#72

Open
Sasuke0723 wants to merge 2 commits intorcore-os:devfrom
Sasuke0723:fix/wq
Open

refactor(axtask): replace wait queue boolean wake flags with explicit policy#72
Sasuke0723 wants to merge 2 commits intorcore-os:devfrom
Sasuke0723:fix/wq

Conversation

@Sasuke0723
Copy link
Copy Markdown
Contributor

Summary

  • add ReschedPolicy for wait queue wake operations
  • add notify_one_with, notify_many_with, and notify_all_with
  • keep existing boolean-based APIs as compatibility wrappers
  • migrate internal call sites and examples to the explicit API

Why

  • boolean arguments like notify_one(true) are not self-explanatory
  • this keeps behavior unchanged while making new call sites clearer

Validation

  • updated existing wait queue test call sites to use the new API
  • reviewed compatibility wrappers to ensure old behavior is preserved

Risk

  • low
  • the old APIs are still present and forward to the new implementation

@Sasuke0723 Sasuke0723 changed the base branch from main to dev March 30, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant