public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
* [libgpiod] - fast writing while waiting for edge events
@ 2023-12-12  9:55 Mathias Dobler
  2023-12-12 11:12 ` Bartosz Golaszewski
  0 siblings, 1 reply; 10+ messages in thread
From: Mathias Dobler @ 2023-12-12  9:55 UTC (permalink / raw)
  To: linux-gpio

Hello,
From reading other conversations I've learned that it's not a good
idea to have more than 1 thread accessing libgpiod objects. But this
raises the question of how to react to events and let reads/writes
through as quickly as possible at the same time. I have already played
around with the file descriptor of the request object to interrupt the
wait for edge events, but this solution is not good because it comes
at the expense of responsiveness to events, and requires complicated
synchronization.
How bad would it be to have 1 thread waiting for events and 1 other
thread reading/writing?

Regards,
Mathias

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-12-13 13:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12  9:55 [libgpiod] - fast writing while waiting for edge events Mathias Dobler
2023-12-12 11:12 ` Bartosz Golaszewski
2023-12-12 13:01   ` Mathias Dobler
2023-12-12 16:02     ` Kent Gibson
2023-12-12 17:06       ` Mathias Dobler
2023-12-13  1:07         ` Kent Gibson
2023-12-13 10:49           ` Mathias Dobler
2023-12-13 11:51             ` Kent Gibson
2023-12-13 12:52               ` Mathias Dobler
2023-12-13 13:12                 ` Kent Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox