HaikuDepot: Filtering Crash Resolution
I am unable to reproduce the problem locally, but suspect that the lack of locking around one line may be the cause. Hopefully fixes #14025. Change-Id: I14ba6d2cb4f264af732fad9c783c55f690cece4f Reviewed-on: https://review.haiku-os.org/c/1472 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
a70eb9a982
commit
cd00276153
@@ -817,10 +817,9 @@ MainWindow::_InitWorkerThreads()
|
|||||||
void
|
void
|
||||||
MainWindow::_AdoptModel()
|
MainWindow::_AdoptModel()
|
||||||
{
|
{
|
||||||
fVisiblePackages = fModel.CreatePackageList();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
AutoLocker<BLocker> modelLocker(fModel.Lock());
|
AutoLocker<BLocker> modelLocker(fModel.Lock());
|
||||||
|
fVisiblePackages = fModel.CreatePackageList();
|
||||||
AutoLocker<BLocker> listLocker(fPackagesToShowListLock);
|
AutoLocker<BLocker> listLocker(fPackagesToShowListLock);
|
||||||
fPackagesToShowList = fVisiblePackages;
|
fPackagesToShowList = fVisiblePackages;
|
||||||
atomic_add(&fPackagesToShowListID, 1);
|
atomic_add(&fPackagesToShowListID, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user