Commit f556a2c
committed
Add ready queue helpers for mutex/semaphore
Previously, task operations lacked public enqueue/dequeue helpers usable
from outside the task core, which made it impossible to keep ready queue
synchronized when tasks crossed the runnable boundary.
This change introduces two helpers to be used by mutex and semaphore
resource-wait and wakeup paths, ensuring their state transitions update
ready queue explicitly and remain aligned with ready-queue semantics.
Both helpers are prefixed with _sched_block to emphasize their role in
TASK_BLOCKED-related transitions.
This keeps mutex and semaphore APIs consistent with ready-queue semantics.1 parent 202b115 commit f556a2c
2 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
301 | 309 | | |
302 | 310 | | |
303 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
453 | 470 | | |
454 | 471 | | |
455 | 472 | | |
| |||
0 commit comments