Changeset 78341 in vbox for trunk/src/VBox/GuestHost/OpenGL/include
- Timestamp:
- Apr 28, 2019 4:47:51 PM (6 years ago)
- 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 46 46 #include "spu_dispatch_table.h" 47 47 48 #ifdef CHROMIUM_THREADSAFE 49 # include <cr_threads.h> 50 #endif 48 #include "cr_threads.h" 51 49 52 50 #include <iprt/cdefs.h> … … 132 130 int id; 133 131 134 #ifdef CHROMIUM_THREADSAFE135 132 /* we keep reference counting of context's makeCurrent for different threads 136 133 * this is primarily needed to avoid having an invalid memory reference in the TLS … … 143 140 * */ 144 141 VBOXTLSREFDATA 145 #endif146 142 147 143 CRbitvalue bitid[CR_MAX_BITARRAY]; -
trunk/src/VBox/GuestHost/OpenGL/include/cr_pack.h
r78190 r78341 15 15 #include "state/cr_currentpointers.h" 16 16 #include "state/cr_client.h" 17 #ifdef CHROMIUM_THREADSAFE18 17 #include "cr_threads.h" 19 #endif20 18 21 19 #include <iprt/types.h> … … 84 82 int updateBBOX; 85 83 CRPackBuffer *currentBuffer; 86 #ifdef CHROMIUM_THREADSAFE87 84 CRmutex mutex; 88 #endif89 85 char *file; /**< for debugging only */ 90 86 int line; /**< for debugging only */ … … 97 93 # define CR_PACKER_CONTEXT_ARG_NOREF() do {} while (0) 98 94 # define CR_PACKER_CONTEXT_ARGCTX(C) 99 # ifdef CHROMIUM_THREADSAFE100 95 extern 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)) 110 99 extern uint32_t cr_packer_cmd_blocks_enabled; 111 100 #else /* if defined IN_RING0 */
Note:
See TracChangeset
for help on using the changeset viewer.