Changeset 331 in vbox for trunk/src/VBox/Runtime/r0drv/nt
- Timestamp:
- Jan 25, 2007 8:47:51 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/initterm-r0drv-nt.cpp
r303 r331 1 1 /* $Id$ */ 2 2 /** @file 3 * InnoTek Portable Runtime - Initialization & Termination, R0 Driver, Darwin.3 * InnoTek Portable Runtime - Initialization & Termination, R0 Driver, NT. 4 4 */ 5 5 … … 24 24 * Header Files * 25 25 *******************************************************************************/ 26 #include "the- darwin-kernel.h"26 #include "the-nt-kernel.h" 27 27 #include <iprt/err.h> 28 28 #include <iprt/assert.h> 29 29 #include "internal/initterm.h" 30 30 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 40 31 int rtR0InitNative(void) 41 32 { 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 48 33 return VINF_SUCCESS; 49 34 } … … 52 37 void rtR0TermNative(void) 53 38 { 54 /*55 * Free the lock group.56 */57 if (g_pDarwinLockGroup)58 {59 lck_grp_free(g_pDarwinLockGroup);60 g_pDarwinLockGroup = NULL;61 }62 39 } 63 40
Note:
See TracChangeset
for help on using the changeset viewer.