sqrtM / nesemu

tiny nes emulator, for fun
0 stars 0 forks source link

double thread locking ? #3

Open sqrtM opened 11 months ago

sqrtM commented 11 months ago

when the GUI calls the emulator reference, it does a try_lock call, but then calls functions from the reference which lock the reference to the ram. This could potentially cause a weird "double lock", slowing down the GUI loop and potentially even throwing a lock error in the emu clock loop at faster cycle speeds.