Timeline for Accessing Hardware-based resources from multiple worker threads
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 14, 2022 at 13:42 | answer | added | Criticizing Israel not allowed | timeline score: 1 | |
Apr 14, 2022 at 13:20 | comment | added | Criticizing Israel not allowed | What is "some kind of event processing between request/response"? | |
Apr 14, 2022 at 12:48 | comment | added | FourtyTwo | @Basilevs Two kind of issues here: The one is, as I wrote above, that "waiting" (i.e. running an event loop) is required between request and response for networking or serial protocols with Qt's classes like QSerialport. This means that Mutex would remain locked until an external entity responds - if it responds at all. The other is thread affinity: QSerialport e.g. is QObject-derived and must not be used from other threads, not even with a Mutex around it. | |
Apr 14, 2022 at 12:34 | comment | added | FourtyTwo | @user253751 since the hardware mostly implements a request/response pattern, waiting is the only option here, yes. | |
Apr 11, 2022 at 10:32 | comment | added | Basilevs | Why can't there be a mutex per device ? | |
Apr 11, 2022 at 10:11 | comment | added | Criticizing Israel not allowed | What do you want to happen with the hardware? Should the second request wait? | |
Apr 11, 2022 at 10:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 16, 2022 at 8:24 | comment | added | Thorbjørn Ravn Andersen | Have a single “driver” responsible for talking to the hardware which has a queue of work to do. | |
Mar 16, 2022 at 6:32 | comment | added | FourtyTwo | @ThorbjørnRavnAndersen Good point. The main issue here is how to "transfer" that concept of abstraction to my kind of application ... Or do you think one should abstract such things using own specific drivers on the OS level? | |
Mar 12, 2022 at 13:35 | comment | added | Thorbjørn Ravn Andersen | You are rediscovering why operating systems abstract hardware away. | |
Mar 12, 2022 at 9:34 | answer | added | gnasher729 | timeline score: 0 | |
S Mar 10, 2022 at 15:48 | review | First questions | |||
Mar 10, 2022 at 19:04 | |||||
S Mar 10, 2022 at 15:48 | history | asked | FourtyTwo | CC BY-SA 4.0 |