- Mar 21, 2019
-
-
Daniel Agar authored
-
- Mar 20, 2019
-
-
Daniel Agar authored
-
- Mar 16, 2019
-
-
Daniel Agar authored
-
- Mar 15, 2019
-
-
Julian Oes authored
It turns out that we can fix the unit tests of the lockstep_scheduler just by checking if `passed_lock` is not `nullptr`. Without this check, the unit tests segfaulted.
-
- Mar 14, 2019
-
-
Daniel Agar authored
-
- Mar 08, 2019
-
-
Beat Küng authored
-
Beat Küng authored
The effect was that threads that tried to exit were unnecessarily kept running. This did not cause problems except for increased resource usage.
-
Beat Küng authored
This solves a potential dead-lock when trying to shutdown: a call to exit() stops all threads and calls all destructors for static objects. The destructor of LockstepScheduler takes a lock. However this is not safe, as the lock could already be taken (by any thread).
-
- Mar 02, 2019
-
-
Daniel Agar authored
- support range based for loops - add remove() method to remove a node - add clear() to empty entire list and delete nodes - add empty() helper
-
- Feb 28, 2019
-
-
Daniel Agar authored
-
- Feb 22, 2019
-
-
Daniel Agar authored
-
- Feb 21, 2019
-
-
David Sidrane authored
-
- Feb 04, 2019
-
-
Daniel Agar authored
Co-Authored-By:
MaEtUgR <maetugr@gmail.com>
-
Matthias Grob authored
-
- Jan 30, 2019
-
-
Daniel Agar authored
-
- Jan 29, 2019
-
-
Daniel Agar authored
-
mcsauder authored
ToneAlarm class refactoring to implement an interface for hardware specific methods and a single ToneAlarm class.
-
- Jan 28, 2019
-
-
Matthias Grob authored
Some threads do not exit and are still running when trying to exit SITL running under Windows in Cygwin. This problem was introduced with: - posix shell #10173 because of strating a child process for the startup script and mixing up the signal handling (only Ctrl+C broken) - lockstep #10648 because of simulator threads not stopping gracefully anymore with timing race conditions (no graceful exit possible anymore) I leave the SIGINT handler on its default implementation for Cygwin which kills the process and all its threads when pressing Ctrl+C. This hotfix at least allows the usage of Ctrl+C again instead of forcing the user to use the task manager to shut down px4.exe going crazy on CPU load instead of exiting everytime.
-
- Jan 27, 2019
-
-
Daniel Agar authored
-
- Jan 25, 2019
-
-
David Sidrane authored
-
David Sidrane authored
-
David Sidrane authored
-
David Sidrane authored
CONFIG_DISABLE_ENVIRON can prevent task having to allocate memory for the env.
-
David Sidrane authored
-
David Sidrane authored
-
David Sidrane authored
-
David Sidrane authored
-
Beat Küng authored
GCC did not do that.
-
- Jan 24, 2019
-
-
Daniel Agar authored
-
- Jan 22, 2019
-
-
Lorenz Meier authored
This is required as we might be in interrupt context on this bare-metal target.
-
Lorenz Meier authored
The actual implementation is not atomic, as the value on the application layer would be limited.
-
Daniel Agar authored
- starts requirements for PX4 modules (hrt, param, etc)
-
- Jan 14, 2019
-
-
Beat Küng authored
-
Beat Küng authored
-
Beat Küng authored
- use a linked-list instead of std::vector. Insertion and removal are now O(1) - avoid malloc and use a thread_local instance of TimedWait. It gets destroyed when the thread exits, so we have to add protection in case a thread exits too quickly. This in turn requires a fix to the unit-tests.
-
Beat Küng authored
Previously hrt_absolute_time() was at around 5% of the total CPU usage, now it's around 0.35%.
-
Beat Küng authored
-
Beat Küng authored
less function calls
-
Beat Küng authored
Not required, since the lock is held during the whole loop iteration.
-
Beat Küng authored
- the loop is not needed - we optimize for the fast case and lock only if really needed
-