Commit a7ace5e
committed
Add ready queue helpers for mutex/semaphore
Add scheduler queue helpers _sched_block_enqueue() and
_sched_block_dequeue() in task.c, enabling ready-queue manipulation
from outside the scheduler core, which was previously unsupported.
Apply these helpers to mutex/semaphore operations to ensure that each
blocking or wakeup transition updates the corresponding ready queue,
keeping scheduler state and mutex/semaphore semantics consistent.
Name both helpers with the _sched_block prefix to clearly reflect their
role in TASK_BLOCKED state transitions.1 parent 613c9d3 commit a7ace5e
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