Skip to content

Commit 18d26e4

Browse files
seanmsonatique
authored andcommitted
libusbi.h: move mutex declarations before the things they lock
1 parent f478f4e commit 18d26e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libusb/libusbi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,18 +369,18 @@ struct libusb_context {
369369
usbi_timer_t timer;
370370
#endif
371371

372-
struct list_head usb_devs;
373372
usbi_mutex_t usb_devs_lock;
373+
struct list_head usb_devs;
374374

375375
/* A list of open handles. Backends are free to traverse this if required.
376376
*/
377-
struct list_head open_devs;
378377
usbi_mutex_t open_devs_lock;
378+
struct list_head open_devs;
379379

380380
/* A list of registered hotplug callbacks */
381+
usbi_mutex_t hotplug_cbs_lock;
381382
struct list_head hotplug_cbs;
382383
libusb_hotplug_callback_handle next_hotplug_cb_handle;
383-
usbi_mutex_t hotplug_cbs_lock;
384384

385385
/* A flag to indicate that the context is ready for hotplug notifications */
386386
usbi_atomic_t hotplug_ready;

libusb/version_nano.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define LIBUSB_NANO 11988
1+
#define LIBUSB_NANO 11989

0 commit comments

Comments
 (0)