https://bugs.winehq.org/show_bug.cgi?id=39023
--- Comment #39 from Naan wine@sharpner.de --- (In reply to Alex Vallée from comment #38)
(In reply to Ken Thomases from comment #33)
I suspect the problem may be that two threads are calling into the Mac HID library at the same time. It may be that we need to use a critical section to prevent that entirely. Or maybe using IOHIDTransaction objects will be enough to fix it. The latter would fix it if the problem is just that the element values are being released by one thread (because a new HID report has been received) while the other thread is still using them.
I went with the idea and added a mutex for each device id. Seems to work for me.
Can you provide a patch for me or is this already upstream? thx in advance!