aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2023-09-18 22:47:43 +0200
committerAdrian Herrmann <adrian.herrmann@qt.io>2023-11-24 23:15:27 +0100
commite89d05ec5f703922b334233aa48005f828b16281 (patch)
tree21d59de86cf961d70784381deac59cac146d88b4 /sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp
parent476dea383d64d528263ff12d795901b10bc7ed48 (diff)
QtAsyncio: Add wrapper for calls in executor
Executors require a bit of extra work for QtAsyncio, as we can't use naked Python threads, instead we must make sure that the thread created by executor.submit() has an event loop. This is achieved by submitting a small wrapper that attaches a QEventLoop to the executor thread, and then creates a singleshot timer to push the actual function for the executor into this new event loop. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I77569d8939d6040ddbe62a99448c6ced2785f27e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp')
0 files changed, 0 insertions, 0 deletions