tls-win.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync * IPRT - Thread Local Storage (TLS), Win32.
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync * Copyright (C) 2008 Oracle Corporation
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * available from http://www.virtualbox.org. This file is free software;
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * General Public License (GPL) as published by the Free Software
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * The contents of this file may alternatively be used under the terms
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * of the Common Development and Distribution License Version 1.0
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * VirtualBox OSE distribution, in which case the provisions of the
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * CDDL are applicable instead of those of the GPL.
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * You may elect to license modified versions of this file under the
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync * terms and conditions of either the GPL or the CDDL or both.
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync/*******************************************************************************
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync* Header Files *
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync*******************************************************************************/
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync return iTls != TLS_OUT_OF_INDEXES ? (RTTLS)iTls : NIL_RTTLS;
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsyncRTR3DECL(int) RTTlsAllocEx(PRTTLS piTls, PFNRTTLSDTOR pfnDestructor)
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsyncRTR3DECL(int) RTTlsGetEx(RTTLS iTls, void **ppvValue)
ce2999a7174f173a66d18a241dbd8f5a1236be4bvboxsync /* TlsGetValue always updates last error */