VirtualBox

Changeset 4403 in vbox


Ignore:
Timestamp:
Aug 28, 2007 3:45:07 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23971
Message:

PDMCritSectIsInitialized.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmcritsect.h

    r4071 r4403  
    9090
    9191/**
     92 * Checks if a critical section is initialized or not.
     93 *
     94 * @returns true if initialized.
     95 * @returns false if not initialized.
     96 * @param   pCritSect   The critical section.
     97 */
     98PDMDECL(bool) PDMCritSectIsInitialized(PCPDMCRITSECT pCritSect);
     99
     100/**
    92101 * Try enter a critical section.
    93102 *
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r4071 r4403  
    191191}
    192192
     193
     194/**
     195 * Checks if a critical section is initialized or not.
     196 *
     197 * @returns true if initialized.
     198 * @returns false if not initialized.
     199 * @param   pCritSect   The critical section.
     200 */
     201PDMDECL(bool) PDMCritSectIsInitialized(PCPDMCRITSECT pCritSect)
     202{
     203    return pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC;
     204}
     205
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