VirtualBox

Ignore:
Timestamp:
Aug 7, 2009 9:45:48 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50790
Message:

IPRT: RT_MORE_STRICT for r0rdv and r0drv/darwin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/initterm-r0drv.cpp

    r21337 r22052  
    3939#include <iprt/assert.h>
    4040#include <iprt/err.h>
     41#include <iprt/mp.h>
     42#include <iprt/thread.h>
    4143#ifndef IN_GUEST /* play safe for now */
    4244# include "r0drv/mp-r0drv.h"
     
    6870    int rc;
    6971    Assert(fReserved == 0);
     72    RT_ASSERT_PREEMPTIBLE();
    7073
    7174    /*
     
    106109RTR0DECL(void) RTR0Term(void)
    107110{
     111    int32_t cNewUsers;
     112    RT_ASSERT_PREEMPTIBLE();
     113
    108114    /*
    109115     * Last user does the cleanup.
    110116     */
    111     int32_t cNewUsers = ASMAtomicDecS32(&g_crtR0Users);
     117    cNewUsers = ASMAtomicDecS32(&g_crtR0Users);
    112118    Assert(cNewUsers >= 0);
    113119    if (cNewUsers != 0)
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