Commit 8f4e140
committed
schedule: add scheduler_init_context()
Add an optional method that allow the schedule.h user to get
access to the thread context that will be used for scheduling.
This is critical when the callbacks are run in user-space context
and schedule.h client needs to grant access to objects like locks
to the callback thread.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent efbc17b commit 8f4e140
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
161 | 171 | | |
162 | 172 | | |
163 | 173 | | |
| |||
379 | 389 | | |
380 | 390 | | |
381 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
382 | 410 | | |
383 | 411 | | |
384 | 412 | | |
| |||
0 commit comments