[wpilib] Fix deadlocks in Mechanism2d et al. (#3770)

UpdateEntries() and Flush() are called from methods that lock the mutex,
so locking it again will cause deadlocks. This also updates the Java
code to make MechanismObject2d::update synchronized like in the C++
version.
This commit is contained in:
Prateek Machiraju
2021-12-06 17:42:02 -05:00
committed by GitHub
parent acb64dff97
commit d81ef2bc5c
6 changed files with 8 additions and 7 deletions

View File

@@ -15,6 +15,10 @@
<Match>
<Bug pattern="EI_EXPOSE_REP2" />
</Match>
<Match>
<Bug pattern="IS2_INCONSISTENT_SYNC" />
<Source name="MechanismLigament2d.java" />
</Match>
<Match>
<Bug pattern="MS_CANNOT_BE_FINAL" />
<Class name="edu.wpi.first.wpilibj.examples.pacgoat.Robot" />