VirtualBox

Changeset 38717 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Sep 12, 2011 2:48:50 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73975
Message:

Main/Medium+Machine+AutoLock: Integrate the queryInfo semaphore into the AutoLock infrastructure with the appropriate lock class. Adjust the locking rules for queryInfo and start propagating them up to the callers. Needs more work, but this is comparably simple: just get the mediaTree lock in the caller if the assert triggers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/AutoLock.cpp

    r33540 r38717  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    7373        { LOCKCLASS_LISTOFMEDIA,        "7-LISTOFMEDIA" },
    7474        { LOCKCLASS_LISTOFOTHEROBJECTS, "8-LISTOFOTHEROBJECTS" },
    75         { LOCKCLASS_OTHEROBJECT,        "9-OTHEROBJECT" },
    76         { LOCKCLASS_USBLIST,            "10-USBLIST" },
    77         { LOCKCLASS_PROGRESSLIST,       "11-PROGRESSLIST" },
    78         { LOCKCLASS_OBJECTSTATE,        "12-OBJECTSTATE" }
     75        { LOCKCLASS_MEDIUMQUERY,        "9-MEDIUMQUERY" },
     76        { LOCKCLASS_OTHEROBJECT,        "10-OTHEROBJECT" },
     77        { LOCKCLASS_USBLIST,            "11-USBLIST" },
     78        { LOCKCLASS_PROGRESSLIST,       "12-PROGRESSLIST" },
     79        { LOCKCLASS_OBJECTSTATE,        "13-OBJECTSTATE" }
    7980    };
    8081
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