Commit 12430bb
committed
TeleopPanel: use external sim_lock instead of class-level _sim_lock
Replace the class-level _sim_lock with a sim_lock parameter passed from
SimContext. This ensures teleop, the physics inputhook, and any other
thread all share the same RLock — preventing concurrent MuJoCo access.
Part of personalrobotics/mj_manipulator#401 parent 7105f80 commit 12430bb
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
| |||
207 | 203 | | |
208 | 204 | | |
209 | 205 | | |
| 206 | + | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| |||
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
371 | | - | |
| 369 | + | |
372 | 370 | | |
373 | 371 | | |
374 | 372 | | |
| |||
0 commit comments