儲存庫 vbox 的更動 63159
- 時間撮記:
- 2016-8-8 下午12:43:42 (8 年 以前)
- 位置:
- trunk/src/VBox/Main/src-client
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r62372 r63159 358 358 359 359 RecvDataTask *pTask = NULL; 360 RTTHREAD threadRcv;360 RTTHREAD hThreadRcv; 361 361 int rc = S_OK; 362 362 … … 381 381 /* This function delete pTask in case of exceptions, 382 382 * so there is no need in the call of delete operator. */ 383 hr = pTask->createThread(& threadRcv);384 385 } 386 catch (std::bad_alloc &)383 hr = pTask->createThread(&hThreadRcv); 384 385 } 386 catch (std::bad_alloc &) 387 387 { 388 388 hr = setError(E_OUTOFMEMORY); 389 } 390 catch(...) 389 hThreadRcv = NIL_RTTHREAD; 390 } 391 catch (...) 391 392 { 392 393 LogRel2(("DnD: Could not create thread for RecvDataTask \n")); 393 394 hr = E_FAIL; 395 hThreadRcv = NIL_RTTHREAD; 394 396 } 395 397 396 398 if (SUCCEEDED(hr)) 397 399 { 398 rc = RTThreadUserWait( threadRcv, 30 * 1000 /* 30s timeout */);400 rc = RTThreadUserWait(hThreadRcv, 30 * 1000 /* 30s timeout */); 399 401 if (RT_SUCCESS(rc)) 400 402 { -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r62485 r63159 627 627 SendDataTask *pTask = NULL; 628 628 PSENDDATACTX pSendCtx = NULL; 629 RTTHREAD threadSnd;629 RTTHREAD rcThreadSend; 630 630 int rc = S_OK; 631 631 … … 653 653 //this function delete pTask in case of exceptions, so there is no need in the call of delete operator 654 654 //pSendCtx is deleted in the pTask destructor 655 hr = pTask->createThread(& threadSnd);656 657 } 658 catch (std::bad_alloc &)655 hr = pTask->createThread(&rcThreadSend); 656 657 } 658 catch (std::bad_alloc &) 659 659 { 660 660 hr = setError(E_OUTOFMEMORY); 661 } 662 catch(...) 661 rcThreadSend = NIL_RTTHREAD; 662 } 663 catch (...) 663 664 { 664 665 LogRel2(("DnD: Could not create thread for SendDataTask \n")); 665 666 hr = E_FAIL; 667 rcThreadSend = NIL_RTTHREAD; 666 668 } 667 669 668 670 if (SUCCEEDED(hr)) 669 671 { 670 rc = RTThreadUserWait( threadSnd, 30 * 1000 /* 30s timeout */);672 rc = RTThreadUserWait(rcThreadSend, 30 * 1000 /* 30s timeout */); 671 673 if (RT_SUCCESS(rc)) 672 674 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器