semspinmutex-r3-generic.cpp revision 0b4890533cbae4f30a0241d0780d4ff9daa304f4
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * IPRT - Spinning Mutex Semaphores, Ring-3, Generic.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * Copyright (C) 2006-2009 Sun Microsystems, Inc.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * available from http://www.virtualbox.org. This file is free software;
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * you can redistribute it and/or modify it under the terms of the GNU
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * General Public License (GPL) as published by the Free Software
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * The contents of this file may alternatively be used under the terms
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * of the Common Development and Distribution License Version 1.0
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * VirtualBox OSE distribution, in which case the provisions of the
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * CDDL are applicable instead of those of the GPL.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * You may elect to license modified versions of this file under the
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * terms and conditions of either the GPL or the CDDL or both.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync * additional information or have any questions.
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync/*******************************************************************************
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync* Header Files *
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync*******************************************************************************/
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsyncRTDECL(int) RTSemSpinMutexCreate(PRTSEMSPINMUTEX phSpinMtx, uint32_t fFlags)
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync AssertReturn(!(fFlags & ~RTSEMSPINMUTEX_FLAGS_VALID_MASK), VERR_INVALID_PARAMETER);
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsync PRTCRITSECT pCritSect = (PRTCRITSECT)RTMemAlloc(sizeof(RTCRITSECT));
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsyncRTDECL(int) RTSemSpinMutexDestroy(RTSEMSPINMUTEX hSpinMtx)
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsyncRTDECL(int) RTSemSpinMutexTryRequest(RTSEMSPINMUTEX hSpinMtx)
0b4890533cbae4f30a0241d0780d4ff9daa304f4vboxsyncRTDECL(int) RTSemSpinMutexRequest(RTSEMSPINMUTEX hSpinMtx)