VirtualBox

Ignore:
Timestamp:
Apr 13, 2010 6:02:46 PM (15 years ago)
Author:
vboxsync
Message:

Main/glue/AutoLock: add a wrapper for checking whether any lock of a class is held

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/AutoLock.h

    r26746 r28270  
    55
    66/*
    7  * Copyright (C) 2006-2009 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2010 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    8989void InitAutoLockSystem();
    9090
     91/**
     92 * Check whether the current thread holds any locks in the given class
     93 *
     94 * @return true if any such locks are held, false otherwise. If the lock
     95 *              validator is not compiled in, always returns false.
     96 * @param lockClass     Which lock class to check.
     97 */
     98bool AutoLockHoldsLocksInClass(VBoxLockingClass lockClass);
     99
    91100////////////////////////////////////////////////////////////////////////////////
    92101//
Note: See TracChangeset for help on using the changeset viewer.

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