Suggestion: Unlock the GIL while accessing uqueue.Queue get() und put() functions
-
At the moment the GIL is not unlocked while sending to or receiving from a queue.
This has the effect that a call to get() while the queue is empty results in an immediate deadlock and the same goes for put() if the queue is full.If the GIL was unlocked other parts of the application would still be able to run and the only change required would be to wrap the calls to xQueueSend/xQueueReceive with MP_THREAD_GIL_EXIT and MP_THREAD_GIL_ENTER calls in moduqueue.c.
-
Can you submit this as an issue on the firmwares github please: https://github.com/pycom/pycom-micropython-sigfox
-
I sent a pull request: https://github.com/pycom/pycom-micropython-sigfox/pull/146
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login