summaryrefslogtreecommitdiffstatshomepage
path: root/lib/mbedtls_errors/tester.c
diff options
context:
space:
mode:
authorAmir Gonnen <amirgonnen@gmail.com>2021-06-15 09:02:50 +0300
committerDamien George <damien@micropython.org>2021-06-24 23:12:26 +1000
commitcb332ddae8075001a1a9e6af0fa8aa191602dee8 (patch)
tree4e3a6a16065d3693454053ae728c724f1bb52a1a /lib/mbedtls_errors/tester.c
parent413f34cd8f244d1ce8b3c73386fdd57241165a1b (diff)
downloadmicropython-cb332ddae8075001a1a9e6af0fa8aa191602dee8.tar.gz
micropython-cb332ddae8075001a1a9e6af0fa8aa191602dee8.zip
unix/modffi: Add option to lock GC in callback, and cfun access.
Add an optional 'lock' kwarg to callback that locks GC and scheduler. This allows the callback to be invoked asynchronously in 'interrupt context', for example as a signal handler. Also add the 'cfun' member function to callback, that allows retrieving the C callback function address. This is needed when the callback should be set to a struct field. See related #7373. Signed-off-by: Amir Gonnen <amirgonnen@gmail.com>
Diffstat (limited to 'lib/mbedtls_errors/tester.c')
0 files changed, 0 insertions, 0 deletions