bindings: python: tests: don't use the same chip from different threads
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Sep 2023 09:31:42 +0000 (11:31 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 25 Sep 2023 07:00:11 +0000 (09:00 +0200)
commitced90e79217793957b11414f47f8aa8a77c7a2d5
treeae3a88e16d9556d7008af6f346cdb1bac9348b49
parentb91187b7cdaab1789695c668432907b3381e6ea5
bindings: python: tests: don't use the same chip from different threads

There are no thread-safety guarantees in libgpiod. Let's not reuse the
chip object created in one thread to generate info events in another but
use a global request function instead.

Reported-by: Erik Schilling <erik.schilling@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Erik Schilling <erik.schilling@linaro.org>
bindings/python/tests/tests_info_event.py