[patch] BMenuBar_Track() is not locking atomically
|Reported by:||jscipione||Owned by:||axeld|
|Has a Patch:||yes||Platform:||All|
Description (last modified by )
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.
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.
Can someone with experience with BMenuBar and BHandler/BLooper take a look at my patch and see if there are any problems with it?