1 | | Because the locking is not-atomic it can cause the app to crash if it is another thread unlocks the looper while this one is trying to use it. This patch fixes the problem for me and I detect no regressions but I'd like someone to take a second look. It was discovered while I was attempting to fix #8539 and is (partially) responsible for causing that bug. Can someone with experience with BMenuBar and BHandler/BLooper take a look at my patch and see if there are any problems with it? |
| 1 | Because the locking is not-atomic it can cause the app to crash if another thread detaches the menu bar from the window while this method is trying to use it. |
| 2 | |
| 3 | The attached patch fixes the problem for me and I detect no regressions but I'd like someone to take a second look. It was discovered while I was attempting to fix #8539 and is (partially) responsible for causing that bug. |
| 4 | |
| 5 | Can someone with experience with BMenuBar and BHandler/BLooper take a look at my patch and see if there are any problems with it? |