Commit 01a08ba
committed
unix/mpbthciport: Use mp_thread_run_on_mp_thread.
This replaces the previous code that used the scheduler (via thread) to
run the BLE host stack.
Now the host stack can run directly on the thread, and then
modbluetooth.c will use mp_thread_run_on_mp_thread to run the
Python-level callbacks on a MicroPython thread as necessary.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <[email protected]>1 parent a70da51 commit 01a08ba
2 files changed
+20
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 69 | | |
82 | 70 | | |
83 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
84 | 76 | | |
85 | 77 | | |
86 | 78 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 79 | + | |
91 | 80 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 81 | + | |
97 | 82 | | |
98 | 83 | | |
99 | 84 | | |
100 | | - | |
101 | | - | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | 221 | | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| 238 | + | |
233 | 239 | | |
| 240 | + | |
| 241 | + | |
234 | 242 | | |
235 | 243 | | |
236 | 244 | | |
237 | 245 | | |
238 | | - | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
0 commit comments