Commit 737ef54
committed
Add enqueue helper for mutex/semaphore operations
Currently, there is no enqueueing API that can be invoked from other files,
especially in mutex and semaphore operations which include task state
transition from TASK_BLOCKED to TASK_READY when a held resource is released.
This change introduces the _sched_blocked_enqueue() helper, which will be
used by mutex/semaphore unblocking paths to insert the task’s existing
linkage node into the corresponding per-priority ready queue, keeping
scheduler visibility and ready-queue consistency.1 parent c4d4de6 commit 737ef54
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
462 | 470 | | |
463 | 471 | | |
464 | 472 | | |
| |||
0 commit comments