thread2-r0drv-solaris.c revision ab91a0b087de86c622843613eb756af4635b5353
/* $Id$ */
/** @file
* innotek Portable Runtime - Threads (Part 2), 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"
int rtThreadNativeInit(void)
{
return VINF_SUCCESS;
}
{
return rtThreadGetByNative(RTThreadNativeSelf());
}
{
int iPriority;
switch (enmType)
{
default:
return VERR_INVALID_PARAMETER;
}
return VINF_SUCCESS;
}
{
/* There is nothing special that needs doing here, but the
user really better know what he's cooking. */
return VINF_SUCCESS;
}
/**
* Native thread main function.
*
* @param pvThreadInt The thread structure.
*/
static void rtThreadNativeMain(void *pvThreadInt)
{
int rc;
thread_exit();
}
{
int rc;
if (pKernThread)
{
return VINF_SUCCESS;
}
return RTErrConvertFromErrno(rc);
}