PDMAllCritSectBoth.cpp revision 9d39cf70a53b3411e29d332d9997cb691df1b5f6
/* $Id$ */
/** @file
* PDM - Code Common to Both Critical Section Types, All Contexts.
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "PDMInternal.h"
/**
* Process the critical sections (both types) queued for ring-3 'leave'.
*
* @param pVCpu Pointer to the VMCPU.
*/
{
uint32_t i;
/* Shared leaves. */
while (i-- > 0)
{
# ifdef IN_RING3
# else
# endif
}
/* Last, exclusive leaves. */
while (i-- > 0)
{
# ifdef IN_RING3
# else
# endif
}
/* Normal leaves. */
while (i-- > 0)
{
# ifdef IN_RING3
# else
PPDMCRITSECT pCritSect = (PPDMCRITSECT)MMHyperR3ToCC(pVCpu->CTX_SUFF(pVM), pVCpu->pdm.s.apQueuedCritSectLeaves[i]);
# endif
}
}
#endif /* IN_RING3 || IN_RING0 */