RTSemEventWait-2-ex-generic.cpp revision c7814cf6e1240a519cbec0441e033d0e2470ed00
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * IPRT - RTSemEventWait, implementation based on RTSemEventWaitEx.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Copyright (C) 2010-2011 Oracle Corporation
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * This file is part of VirtualBox Open Source Edition (OSE), as
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * available from http://www.virtualbox.org. This file is free software;
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * you can redistribute it and/or modify it under the terms of the GNU
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * General Public License (GPL) as published by the Free Software
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Foundation, in version 2 as it comes in the "COPYING" file of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * The contents of this file may alternatively be used under the terms
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * of the Common Development and Distribution License Version 1.0
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * VirtualBox OSE distribution, in which case the provisions of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL are applicable instead of those of the GPL.
c93c462eec9d46f84d567abf52eb29a27c2e134bCheng Sean Ye * You may elect to license modified versions of this file under the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * terms and conditions of either the GPL or the CDDL or both.
e4b86885570d77af552e9cf94f142f4d744fb8c8Cheng Sean Ye/*******************************************************************************
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi* Header Files *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi*******************************************************************************/
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiRTDECL(int) RTSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi rc = RTSemEventWaitEx(hEventSem, RTSEMWAIT_FLAGS_RESUME | RTSEMWAIT_FLAGS_INDEFINITE, 0);