Skip to content

Commit

Permalink
Document backend functions that already lock dev_handle->lock
Browse files Browse the repository at this point in the history
  • Loading branch information
seanm authored and tormodvolden committed Jan 19, 2024
1 parent f080aec commit 9a4ec8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libusb/libusbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,8 @@ struct usbi_os_backend {
* claiming, no other drivers/applications can use the interface because
* we now "own" it.
*
* This function gets called with dev_handle->lock locked!
*
* Return:
* - 0 on success
* - LIBUSB_ERROR_NOT_FOUND if the interface does not exist
Expand All @@ -1215,6 +1217,8 @@ struct usbi_os_backend {
* You will only ever be asked to release an interface which was
* successfully claimed earlier.
*
* This function gets called with dev_handle->lock locked!
*
* Return:
* - 0 on success
* - LIBUSB_ERROR_NO_DEVICE if the device has been disconnected since it
Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11867
#define LIBUSB_NANO 11868

0 comments on commit 9a4ec8b

Please sign in to comment.