Changeset 78341 in vbox for trunk/src/VBox/GuestHost/OpenGL/include/cr_pack.h
- Timestamp:
- Apr 28, 2019 4:47:51 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 130318
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.