Changeset 78341 in vbox for trunk/src/VBox/Additions/common/crOpenGL/feedback
- Timestamp:
- Apr 28, 2019 4:47:51 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL/feedback
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_context.c
r76553 r78341 36 36 GLint ctx, slot; 37 37 38 #ifdef CHROMIUM_THREADSAFE39 38 crLockMutex(&feedback_spu.mutex); 40 #endif41 42 39 ctx = feedback_spu.child.VBoxCreateContext(con, dpyName, visual, shareCtx); 43 40 … … 56 53 feedback_spu.context[slot].clientCtx = ctx; 57 54 58 #ifdef CHROMIUM_THREADSAFE59 55 crUnlockMutex(&feedback_spu.mutex); 60 #endif61 62 56 return ctx; 63 57 } … … 72 66 feedbackspu_MakeCurrent( GLint window, GLint nativeWindow, GLint ctx ) 73 67 { 74 #ifdef CHROMIUM_THREADSAFE75 68 crLockMutex(&feedback_spu.mutex); 76 #endif77 69 feedback_spu.child.MakeCurrent(window, nativeWindow, ctx); 78 70 … … 99 91 } 100 92 101 #ifdef CHROMIUM_THREADSAFE102 93 crUnlockMutex(&feedback_spu.mutex); 103 #endif104 94 } 105 95 … … 107 97 feedbackspu_DestroyContext( GLint ctx ) 108 98 { 109 #ifdef CHROMIUM_THREADSAFE110 99 crLockMutex(&feedback_spu.mutex); 111 #endif112 100 feedback_spu.child.DestroyContext(ctx); 113 101 … … 125 113 } 126 114 127 #ifdef CHROMIUM_THREADSAFE128 115 crUnlockMutex(&feedback_spu.mutex); 129 #endif130 116 } 131 117 -
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu.h
r78190 r78341 42 42 ContextInfo context[CR_MAX_CONTEXTS]; 43 43 44 #ifdef CHROMIUM_THREADSAFE45 44 CRmutex mutex; 46 #endif47 45 } feedbackSPU; 48 46 -
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_init.c
r78190 r78341 31 31 (void) num_contexts; 32 32 33 #ifdef CHROMIUM_THREADSAFE34 33 crInitMutex(&feedback_spu.mutex); 35 #endif36 37 34 feedback_spu.id = id; 38 35 feedback_spu.has_child = 0;
Note:
See TracChangeset
for help on using the changeset viewer.