thread-r0drv-solaris.c revision b34f0f200ed0778053a2a1d93381c2c6b60cb2d5
/* $Id$ */
/** @file
* innotek Portable Runtime - Threads, Ring-0 Driver, Solaris.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* 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 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 "the-solaris-kernel.h"
{
return (RTNATIVETHREAD)curthread;
}
{
int cTicks;
unsigned long timeout;
if (!cMillies)
{
return VINF_SUCCESS;
}
if (cMillies != RT_INDEFINITE_WAIT)
else
cTicks = 0;
#if 0
timeout = ddi_get_lbolt();
mutex_enter(&mtx);
mutex_exit(&mtx);
cv_destroy(&cnd);
mutex_destroy(&mtx);
#endif
#if 1
#endif
#if 0
/* Hmm, no same effect as using delay() */
struct timespec t;
t.tv_sec = 0;
#endif
return VINF_SUCCESS;
}
RTDECL(bool) RTThreadYield(void)
{
return true;
}