1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-22 14:19:42 +01:00
Stefan Karlsson 6504ce448e LP-155 Workaround failing callback deregistration
Deregistration of hid_device_removal_callback fails because the call to
IOHIDDeviceRegisterRemovalCallback doesn't deregister it as it should.

This causes crashes when hid_device_removal_callback is called after
the read_thread has been shutdown.

This patch works around this problem by:

1) Letting the 'dev' hid_device, so that the callback can safely
   read the struct, even after the read_thread has been shut down
   and the memory should have been freed.

2) Making sure that the two racing callbacks that previously
   called CFRunLoopStop, hid_device_removal_callback and
   perform_signal_callback, now synchronize and make sure
    that CFRunLoopStop is only called once.
2015-10-15 22:11:53 +02:00
2015-04-26 05:47:40 +10:00
2015-09-28 21:53:13 +02:00
2015-10-02 21:17:58 +01:00
2015-05-18 21:30:05 +02:00
2015-10-02 18:57:01 +02:00

About the LibrePilot Project

Open - Collaborative - Free

The LibrePilot open source project was founded in July 2015. It focuses on research and development of software and hardware to be used in a variety of applications including vehicle control and stabilization, unmanned autonomous vehicles and robotics. One of the projects primary goals is to provide an open and collaborative environment making it the ideal home for development of innovative ideas.

LibrePilot welcomes and encourages exchange and collaboration with other projects, like adding support for existing hardware or software in collaboration under the spirit of open source.

LibrePilot finds its roots in the OpenPilot project and the founding members are all long-standing contributors in that project.

The LibrePilot Project will be governed by a board of members using consensual methods to make important decisions and to set the overall direction of the project.

The LibrePilot source code is released under the OSI approved GPLv3 license. Integral text of the license can be found at www.gnu.org

Description
The LibrePilot open source project was founded in July 2015. It focuses on research and development of software and hardware to be used in a variety of applications including vehicle control and stabilization, unmanned autonomous vehicles and robotics.
Readme 266 MiB
Languages
C 60.6%
C++ 30.8%
Fortran 2.6%
Rich Text Format 1.3%
Assembly 1.2%
Other 3.1%