VirtualBox

Changeset 22981 in vbox


Ignore:
Timestamp:
Sep 13, 2009 10:09:27 PM (15 years ago)
Author:
vboxsync
Message:

PDMAsyncCompletionFile.cpp: The env.var. VBOX_ASYNC_IO_FAILBACK can be used to force debug builds to use the fallback path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp

    r22978 r22981  
    55
    66/*
    7  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121
    2222
    23 
    2423/*******************************************************************************
    2524*   Header Files                                                               *
     
    3130#include <VBox/vm.h>
    3231#include <VBox/err.h>
    33 
    3432#include <VBox/log.h>
     33
    3534#include <iprt/asm.h>
    3635#include <iprt/assert.h>
    37 #include <iprt/thread.h>
     36#include <iprt/critsect.h>
     37#include <iprt/env.h>
     38#include <iprt/file.h>
    3839#include <iprt/mem.h>
    39 #include <iprt/critsect.h>
    40 #include <iprt/file.h>
    4140#include <iprt/semaphore.h>
    4241#include <iprt/string.h>
     42#include <iprt/thread.h>
    4343
    4444#include "PDMAsyncCompletionFileInternal.h"
     
    5252 */
    5353void pdmacFileTaskFree(PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint,
    54                           PPDMACTASKFILE pTask)
     54                       PPDMACTASKFILE pTask)
    5555{
    5656    PPDMASYNCCOMPLETIONEPCLASSFILE pEpClass = (PPDMASYNCCOMPLETIONEPCLASSFILE)pEndpoint->Core.pEpClass;
     
    503503
    504504    rc = RTFileAioGetLimits(&AioLimits);
     505#ifdef DEBUG
     506    if (RT_SUCCESS(rc) && RTEnvExist("VBOX_ASYNC_IO_FAILBACK"))
     507        rc = VERR_ENV_VAR_NOT_FOUND;
     508#endif
    505509    if (RT_FAILURE(rc))
    506510    {
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