thread-r0drv-solaris.c revision 38168c0b33d524f39a5d653675de79e1dbf5a558
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * IPRT - Threads, Ring-0 Driver, Solaris.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Copyright (C) 2006-2009 Sun Microsystems, Inc.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * available from http://www.virtualbox.org. This file is free software;
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * you can redistribute it and/or modify it under the terms of the GNU
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * General Public License (GPL) as published by the Free Software
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The contents of this file may alternatively be used under the terms
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * of the Common Development and Distribution License Version 1.0
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* Clara, CA 95054 USA or visit http://www.sun.com if you need
#include "../the-solaris-kernel.h"
if (!cMillies)
return VINF_SUCCESS;
cTicks = 0;
return VINF_SUCCESS;
return vbi_yield();
if (!vbi_is_preempt_enabled())
if (!ASMIntAreEnabled())
return !!vbi_is_preempt_pending();
return servicing_interrupt() ? true : false;