diff options
author | Damien George <damien.p.george@gmail.com> | 2019-07-03 16:22:48 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-07-03 16:22:48 +1000 |
commit | c60caf19951c8326be9c3b6f3b016a4d21f69276 (patch) | |
tree | 0598142327985d11306fd4eb4f793862f9f70bda /py/stackctrl.c | |
parent | 1d6cb6357a2cde40822712211fb51c4a4bbe41cf (diff) |
extmod/modlwip: Use mp_sched_schedule to schedule socket callbacks.
The helper function exec_user_callback executes within the context of an
lwIP C callback, and the user (Python) callback to be scheduled may want to
perform further TCP/IP actions, so the latter should be scheduled to run
outside the lwIP context (otherwise it's effectively a "hard IRQ" and such
callbacks have lots of restrictions).
Diffstat (limited to 'py/stackctrl.c')
0 files changed, 0 insertions, 0 deletions