sched-darwin.cpp revision 5eda82e218d35ae0691febd531e1bfc0324cc4a6
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * IPRT - Scheduling, Darwin.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Copyright (C) 2006-2009 Oracle Corporation
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * available from http://www.virtualbox.org. This file is free software;
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * you can redistribute it and/or modify it under the terms of the GNU
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * General Public License (GPL) as published by the Free Software
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * The contents of this file may alternatively be used under the terms
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * of the Common Development and Distribution License Version 1.0
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * VirtualBox OSE distribution, in which case the provisions of the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * CDDL are applicable instead of those of the GPL.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * You may elect to license modified versions of this file under the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * terms and conditions of either the GPL or the CDDL or both.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync/*******************************************************************************
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync* Header Files *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync*******************************************************************************/
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync/*******************************************************************************
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync* Structures and Typedefs *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync*******************************************************************************/
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Configuration of one priority.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsynctypedef struct
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync /** The priority. */
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync /** The name of this priority. */
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync const char *pszName;
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync /** Array scheduler attributes corresponding to each of the thread types. */
int iBasePriority;
int iPriority;
} PROCPRIORITY;
static int rtSchedDarwinGetBasePriority(void)
if (offBest)
if (!off)
return VINF_SUCCESS;
return VINF_SUCCESS;
if (!err)
if (!err)
return rc;