Changeset 34887 in vbox for trunk/src/VBox
- Timestamp:
- Dec 9, 2010 2:13:56 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/icd_drv.c
r30512 r34887 86 86 } 87 87 88 crNetTearDown();89 88 crDebug("DrvValidateVersion %x -> FALSE, going to use system default opengl32.dll\n", version); 90 89 return FALSE; -
trunk/src/VBox/Additions/common/crOpenGL/load.c
r34345 r34887 342 342 #endif 343 343 344 #ifndef WINDOWS 344 345 crNetTearDown(); 346 #endif 345 347 346 348 #ifdef GLX … … 412 414 #endif 413 415 416 #ifndef WINDOWS 414 417 crNetTearDown(); 418 #endif 419 415 420 #ifdef CHROMIUM_THREADSAFE 416 421 crUnlockMutex(mutex); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r34336 r34887 537 537 { 538 538 crFreeMutex(&_PackMutex); 539 crNetTearDown(); 539 540 break; 540 541 } -
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r34884 r34887 1492 1492 #endif 1493 1493 1494 if (!g_crvboxhgcm.initialized) return; 1495 1496 #ifdef CHROMIUM_THREADSAFE 1497 crLockMutex(&g_crvboxhgcm.mutex); 1498 #endif 1499 1494 1500 VBOXCRHGSMIPROFILE_FUNC_PROLOGUE(); 1495 1501 … … 1505 1511 conn->cbBuffer = 0; 1506 1512 1507 //@todo hold lock here?1508 1513 if (conn->type == CR_VBOXHGCM) 1509 1514 { … … 1575 1580 1576 1581 VBOXCRHGSMIPROFILE_FUNC_EPILOGUE(); 1582 1583 #ifdef CHROMIUM_THREADSAFE 1584 crUnlockMutex(&g_crvboxhgcm.mutex); 1585 #endif 1577 1586 } 1578 1587 … … 2319 2328 if (!g_crvboxhgcm.initialized) return; 2320 2329 2330 #ifdef CHROMIUM_THREADSAFE 2331 crLockMutex(&g_crvboxhgcm.mutex); 2332 #endif 2333 2321 2334 /* Connection count would be changed in calls to crNetDisconnect, so we have to store original value. 2322 2335 * Walking array backwards is not a good idea as it could cause some issues if we'd disconnect clients not in the … … 2331 2344 CRASSERT(0==g_crvboxhgcm.num_conns); 2332 2345 2346 g_crvboxhgcm.initialized = 0; 2347 2333 2348 #ifdef CHROMIUM_THREADSAFE 2349 crUnlockMutex(&g_crvboxhgcm.mutex); 2334 2350 crFreeMutex(&g_crvboxhgcm.mutex); 2335 2351 crFreeMutex(&g_crvboxhgcm.recvmutex); … … 2339 2355 crBufferPoolCallbackFree(g_crvboxhgcm.bufpool, crVBoxHGCMBufferFree); 2340 2356 g_crvboxhgcm.bufpool = NULL; 2341 2342 g_crvboxhgcm.initialized = 0;2343 2357 2344 2358 crFree(g_crvboxhgcm.conns); … … 2401 2415 conn->HandleNewMessage = crVBoxHGCMHandleNewMessage; 2402 2416 } 2403 conn->index = g_crvboxhgcm.num_conns;2404 2417 conn->sizeof_buffer_header = sizeof(CRVBOXHGCMBUFFER); 2405 2418 conn->actual_network = 1; … … 2417 2430 conn->cbHostBuffer = 0; 2418 2431 2432 #ifdef CHROMIUM_THREADSAFE 2433 crLockMutex(&g_crvboxhgcm.mutex); 2434 #endif 2419 2435 /* Find a free slot */ 2420 2436 for (i = 0; i < g_crvboxhgcm.num_conns; i++) { … … 2431 2447 n_bytes = ( g_crvboxhgcm.num_conns + 1 ) * sizeof(*g_crvboxhgcm.conns); 2432 2448 crRealloc( (void **) &g_crvboxhgcm.conns, n_bytes ); 2449 conn->index = g_crvboxhgcm.num_conns; 2433 2450 g_crvboxhgcm.conns[g_crvboxhgcm.num_conns++] = conn; 2434 2451 } 2452 #ifdef CHROMIUM_THREADSAFE 2453 crUnlockMutex(&g_crvboxhgcm.mutex); 2454 #endif 2435 2455 } 2436 2456 … … 2440 2460 2441 2461 VBOXCRHGSMIPROFILE_FUNC_PROLOGUE(); 2462 2463 #ifdef CHROMIUM_THREADSAFE 2464 crLockMutex(&g_crvboxhgcm.mutex); 2465 #endif 2442 2466 2443 2467 #ifdef IN_GUEST … … 2480 2504 } 2481 2505 2506 #ifdef CHROMIUM_THREADSAFE 2507 crUnlockMutex(&g_crvboxhgcm.mutex); 2508 #endif 2509 2482 2510 VBOXCRHGSMIPROFILE_FUNC_EPILOGUE(); 2483 2511
Note:
See TracChangeset
for help on using the changeset viewer.