VirtualBox

Ignore:
Timestamp:
Apr 28, 2019 4:47:51 PM (6 years ago)
Author:
vboxsync
Message:

Config.kmk,Additions/common/crOpenGL,VBox/GuestHost/OpenGL,HostServices/SharedOpenGL: Remove CHROMIUM_THREADSAFE define and apply the current default

Location:
trunk/src/VBox/GuestHost/OpenGL/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h

    r69474 r78341  
    4646#include "spu_dispatch_table.h"
    4747
    48 #ifdef CHROMIUM_THREADSAFE
    49 # include <cr_threads.h>
    50 #endif
     48#include "cr_threads.h"
    5149
    5250#include <iprt/cdefs.h>
     
    132130    int id;
    133131
    134 #ifdef CHROMIUM_THREADSAFE
    135132    /* we keep reference counting of context's makeCurrent for different threads
    136133     * this is primarily needed to avoid having an invalid memory reference in the TLS
     
    143140     * */
    144141    VBOXTLSREFDATA
    145 #endif
    146142
    147143    CRbitvalue bitid[CR_MAX_BITARRAY];
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_pack.h

    r78190 r78341  
    1515#include "state/cr_currentpointers.h"
    1616#include "state/cr_client.h"
    17 #ifdef CHROMIUM_THREADSAFE
    1817#include "cr_threads.h"
    19 #endif
    2018
    2119#include <iprt/types.h>
     
    8482    int updateBBOX;
    8583    CRPackBuffer *currentBuffer;
    86 #ifdef CHROMIUM_THREADSAFE
    8784    CRmutex mutex;
    88 #endif
    8985    char *file;  /**< for debugging only */
    9086    int line;    /**< for debugging only */
     
    9793# define CR_PACKER_CONTEXT_ARG_NOREF()  do {} while (0)
    9894# define CR_PACKER_CONTEXT_ARGCTX(C)
    99 # ifdef CHROMIUM_THREADSAFE
    10095extern CRtsd _PackerTSD;
    101 #  define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = (CRPackContext *) crGetTSD(&_PackerTSD)
    102 #  define CR_LOCK_PACKER_CONTEXT(PC) crLockMutex(&((PC)->mutex))
    103 #  define CR_UNLOCK_PACKER_CONTEXT(PC) crUnlockMutex(&((PC)->mutex))
    104 # else
    105 extern DLLDATA(CRPackContext) cr_packer_globals;
    106 #  define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = &cr_packer_globals
    107 #  define CR_LOCK_PACKER_CONTEXT(PC)
    108 #  define CR_UNLOCK_PACKER_CONTEXT(PC)
    109 # endif
     96# define CR_GET_PACKER_CONTEXT(C) CRPackContext *C = (CRPackContext *) crGetTSD(&_PackerTSD)
     97# define CR_LOCK_PACKER_CONTEXT(PC) crLockMutex(&((PC)->mutex))
     98# define CR_UNLOCK_PACKER_CONTEXT(PC) crUnlockMutex(&((PC)->mutex))
    11099extern uint32_t cr_packer_cmd_blocks_enabled;
    111100#else /* if defined IN_RING0 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette