Commit af6e300
committed
Add atomic block helper for mutex lock
Previously, mutex_block_atomic() only updated the task state. Under the new
scheduler design, the blocked task must also be removed from the ready queue.
The existing helper _sched_block() does not match the mutex path because it
operates on queue_t instead of list_t and also processes deferred timer work,
which mutex locking does not require.
This commit introduces _sched_block_mutex(), a helper that supports the list-
based waiter structure and skips deferred timer handling. It will be used by
the mutex lock APIs in a later change.1 parent 10e1e89 commit af6e300
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
0 commit comments