thread-os2.cpp revision 588f763595b21d28ce311148a618cc4ead630558
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * InnoTek Portable Runtime - Threads, OS/2.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Copyright (C) 2006 InnoTek Systemberatung GmbH
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * available from http://www.virtualbox.org. This file is free software;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * General Public License as published by the Free Software Foundation,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * If you received this file as part of a commercial VirtualBox
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * distribution, then only the terms of your commercial VirtualBox
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * license agreement apply instead of the previous paragraph.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Header Files *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
int rtThreadNativeInit(void)
if (rc)
return VERR_NO_TLS_FOR_SELF;
return VINF_SUCCESS;
* Block SIGALRM - required for timer-posix.cpp.
return VINF_SUCCESS;
* Block SIGALRM - required for timer-posix.cpp.
#ifdef fibGetTidPid
_endthread();
if (iThreadId > 0)
return VINF_SUCCESS;
if (pThread)
return NULL;
#ifdef fibGetTidPid
return fibGetTidPid();
return _gettid();
return VINF_SUCCESS;
DosSleep(0);
return fRc;
if (rc)
return u.u64;
if (!rc)
return VINF_SUCCESS;