mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpilibj] Call abort() on Rio on caught Java exception (#6420)
On Rio, we simply want to restart the robot program as quickly as possible, and don't want to risk a hang somewhere that will keep that from happening. The main downside of this is it won't wait for threads to finish (e.g. data logs won't get a final flush).
This commit is contained in:
@@ -75,6 +75,9 @@ public final class HAL extends JNIWrapper {
|
||||
*/
|
||||
public static native void exitMain();
|
||||
|
||||
/** Terminates the executable (at the native level). Does nothing in simulation. */
|
||||
public static native void terminate();
|
||||
|
||||
private static native void simPeriodicBeforeNative();
|
||||
|
||||
private static final List<Runnable> s_simPeriodicBefore = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user