VirtualBox

Ignore:
Timestamp:
Feb 27, 2012 9:25:12 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76471
Message:

Main/Medium: rework locking scheme to solve lock order violations and long GUI start up time caused by too much locking
Main/all: Remove the enter and leave methods from write locks, they cause hard to find locking problems. Better solve them explicitly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplTeleporter.cpp

    r40066 r40257  
    55
    66/*
    7  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    886886                        if (pState->mfSuspendedByUs)
    887887                        {
    888                             autoLock.leave();
     888                            autoLock.release();
    889889                            int rc = VMR3Resume(VMR3GetVM(pState->mpUVM));
    890890                            AssertLogRelMsgRC(rc, ("VMR3Resume -> %Rrc\n", rc));
    891                             autoLock.enter();
     891                            autoLock.acquire();
    892892                        }
    893893                    }
     
    901901        }
    902902    }
    903     autoLock.leave();
     903    autoLock.release();
    904904
    905905    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette