bindings: python: release the GIL during blocking I/O operations
authorBartosz Golaszewski <bartekgola@gmail.com>
Sat, 21 Apr 2018 13:37:19 +0000 (15:37 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 22 Apr 2018 21:16:40 +0000 (23:16 +0200)
commit039b301b173c78664775d1ea93493825ef80c9d4
treeab986226809f976d7ebbb5a44091b79fc19ffae0
parentca374fab32d9c03e5537b3da2023ae1c5e534ccb
bindings: python: release the GIL during blocking I/O operations

We should release the python global interpreter lock when performing
blocking operations and reacquire it again when we're done. Use the
relevant APIs provided by libpython.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
bindings/python/gpiodmodule.c