Skip to content

hid_error improvements#428

Merged
Youw merged 13 commits intomasterfrom
hid_error
Jun 21, 2022
Merged

hid_error improvements#428
Youw merged 13 commits intomasterfrom
hid_error

Conversation

@Youw
Copy link
Member

@Youw Youw commented Jun 12, 2022

Make the documentation and the implementation of hid_error consistent and safe.
The discussion and reasoning on thread safety is here.

Closes: #425

@Youw Youw marked this pull request as draft June 12, 2022 18:46
@Youw Youw marked this pull request as ready for review June 12, 2022 23:48
@Youw Youw added enhancement New feature or request Windows Related to Windows backend hidraw Related to Linux/hidraw backend labels Jun 18, 2022
@Youw
Copy link
Member Author

Youw commented Jun 18, 2022

@Julusian if you have comments regarding this - feel free to leave them here.

@Julusian
Copy link
Contributor

Yeah this looks fine to me.

Initially it felt like a shame to lose the thread safety of the error on linux, but as long as hid_open, hid_enumerate, hid_init are contained to a single thread (which it looks like they should be anyway), then I dont see it losing any safety.

@Youw
Copy link
Member Author

Youw commented Jun 18, 2022

which it looks like they should be anyway

Yeap, still need to write the documentation for it.

@Youw Youw merged commit eaa5c7c into master Jun 21, 2022
@Youw Youw deleted the hid_error branch June 21, 2022 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hidraw Related to Linux/hidraw backend Windows Related to Windows backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments