analogdevicesinc / libsmu

Software abstractions for the analog signal exploration tools.
http://analogdevicesinc.github.io/libsmu/
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

Libusb hotplug removed and crash on close bug solved. #129

Closed cristi-iacob closed 5 years ago

cristi-iacob commented 5 years ago

In this version, we have changed the hotplug mechanism from libsmu. This is because in the last versions of libusb, they have changed the way it works. On the latest versions, when a hotplug signal is emitted (and the callback is started), the device becomes busy, until the callback ends. This thing makes the hotplug mechanism from libsmu inoperative, because it is (almost) impossible to synchronize the callback end time and libsmu calls on the device. When this branch will be merged into master, we will not use the old version of libusb anymore and will use the latest available libusb version (link to the libusb github repository: https://github.com/libusb/libusb).

Therefore we have removed the hotplug_attach and hotplug_detach methods from libsmu and the "-p, --hotplug-devices" option from the API.

In order to show how the hotplug mechanism works, we have modified the hotplug example as well, giving a possible method for simulating the hotplug process.

Signed-off-by: Cristi Iacob cristian.iacob@analog.com

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1181 failed (commit https://github.com/analogdevicesinc/libsmu/commit/7060c84d9a by @)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1183 failed (commit https://github.com/analogdevicesinc/libsmu/commit/d954298e1d by @)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1186 failed (commit https://github.com/analogdevicesinc/libsmu/commit/e9c051fff7 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1188 failed (commit https://github.com/analogdevicesinc/libsmu/commit/70e6d5ab52 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1189 failed (commit https://github.com/analogdevicesinc/libsmu/commit/6f30d8afd1 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1192 failed (commit https://github.com/analogdevicesinc/libsmu/commit/36688145d2 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1194 failed (commit https://github.com/analogdevicesinc/libsmu/commit/0b27edc2fa by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1196 failed (commit https://github.com/analogdevicesinc/libsmu/commit/feadc84ab0 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1198 failed (commit https://github.com/analogdevicesinc/libsmu/commit/e7a2fa769f by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1200 failed (commit https://github.com/analogdevicesinc/libsmu/commit/ac2ad3a5e4 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1202 failed (commit https://github.com/analogdevicesinc/libsmu/commit/2afd447b94 by @cristi-iacob)

AppVeyorBot commented 5 years ago

:x: Build libsmu 1.0.1209 failed (commit https://github.com/analogdevicesinc/libsmu/commit/f4cce7b374 by @cristi-iacob)