Linux / hidraw flock support? #660
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#660
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have seen other applications using
flockon their openhidrawfile descriptors to open them exclusively. This is not the default forhidapibut I am not asking for this to change. I was thinking it might be a good idea to useflockto acquire a shared lock sohidapiapplications won't conflict with other applications usingflockwith an exclusive lock while still allowinghidrawdevices to be opened concurrently with other applications that are also using a shared lock.Would this be useful at all to implement? It's not particularly hard to do.
Maybe it is.
In any cases this sounds like something that might be implemented as platform-specific extension, in similar way as it is done for macOS.