VBoxVideo3D.h revision 71d34382c90482c97bd863ad9e814c511e6a3cdb
/** @file
*
* VirtualBox 3D common tooling
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* 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 (GPL) 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.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#ifndef ___VBox_VBoxVideo3D_h
#define ___VBox_VBoxVideo3D_h
#ifndef VBoxTlsRefGetImpl
# ifdef VBoxTlsRefSetImpl
# error "VBoxTlsRefSetImpl is defined, unexpected!"
# endif
#else
# ifndef VBoxTlsRefSetImpl
# error "VBoxTlsRefSetImpl is NOT defined, unexpected!"
# endif
#endif
#ifndef VBoxTlsRefAssertImpl
# define VBoxTlsRefAssertImpl(_a) do {} while (0)
#endif
typedef DECLCALLBACK(void) FNVBOXTLSREFDTOR(void*);
typedef FNVBOXTLSREFDTOR *PFNVBOXTLSREFDTOR;
typedef enum {
VBOXTLSREFDATA_STATE_32BIT_HACK = 0x7fffffff
#define VBOXTLSREFDATA \
struct VBOXTLSREFDATA_DUMMY
{
};
#define VBOXTLSREFDATA_SIZE() (sizeof (struct VBOXTLSREFDATA_DUMMY))
} while (0)
)
} while (0)
#define VBoxTlsRefAddRef(_p) do { \
} while (0)
#define VBoxTlsRefRelease(_p) do { \
VBoxTlsRefAssertImpl(cRefs >= 0); \
if (!cRefs && (_p)->enmTlsRefState != VBOXTLSREFDATA_STATE_DESTROYING /* <- avoid recursion if VBoxTlsRefAddRef/Release is called from dtor */) { \
} \
} while (0)
#define VBoxTlsRefMarkDestroy(_p) do { \
} while (0)
} else { \
} \
} while (0)
if (oldCur) { \
} \
if ((_p)) { \
} \
} \
} while (0)
#endif /* #ifndef ___VBox_VBoxVideo3D_h */