VirtualBox

Changeset 331 in vbox for trunk/src/VBox/Runtime/r0drv/nt


Ignore:
Timestamp:
Jan 25, 2007 8:47:51 PM (18 years ago)
Author:
vboxsync
Message:

Bool and AMD64 hacking.

File:
1 copied

Legend:

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

    r303 r331  
    11/* $Id$ */
    22/** @file
    3  * InnoTek Portable Runtime - Initialization & Termination, R0 Driver, Darwin.
     3 * InnoTek Portable Runtime - Initialization & Termination, R0 Driver, NT.
    44 */
    55
     
    2424*   Header Files                                                               *
    2525*******************************************************************************/
    26 #include "the-darwin-kernel.h"
     26#include "the-nt-kernel.h"
    2727#include <iprt/err.h>
    2828#include <iprt/assert.h>
    2929#include "internal/initterm.h"
    3030
    31 
    32 /*******************************************************************************
    33 *   Global Variables                                                           *
    34 *******************************************************************************/
    35 /** Pointer to the lock group used by IPRT. */
    36 lck_grp_t *g_pDarwinLockGroup = NULL;
    37 
    38 
    39 
    4031int rtR0InitNative(void)
    4132{
    42     /*
    43      * Create the lock group.
    44      */
    45     g_pDarwinLockGroup = lck_grp_alloc_init("IPRT", LCK_GRP_ATTR_NULL);
    46     AssertReturn(g_pDarwinLockGroup, VERR_NO_MEMORY);
    47 
    4833    return VINF_SUCCESS;
    4934}
     
    5237void rtR0TermNative(void)
    5338{
    54     /*
    55      * Free the lock group.
    56      */
    57     if (g_pDarwinLockGroup)
    58     {
    59         lck_grp_free(g_pDarwinLockGroup);
    60         g_pDarwinLockGroup = NULL;
    61     }
    6239}
    6340
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