- Timestamp:
- Mar 28, 2013 4:11:56 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84617
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r44433 r45239 3091 3091 pProgress.queryInterfaceTo(aProgress); 3092 3092 } 3093 else 3094 { 3095 /* Note: on success, the task will unlock this */ 3096 { 3097 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 3098 HRESULT rc2 = UnlockWrite(NULL); 3099 AssertComRC(rc2); 3100 } 3101 if (pTask != NULL) 3102 delete pTask; 3103 } 3093 else if (pTask != NULL) 3094 delete pTask; 3104 3095 3105 3096 LogFlowThisFunc(("LEAVE, rc=%Rhrc\n", rc)); … … 7867 7858 m->variant = variant; 7868 7859 7869 if (task.isAsync()) 7870 { 7871 /* unlock ourselves when done */ 7872 HRESULT rc2 = UnlockWrite(NULL); 7873 AssertComRC(rc2); 7874 } 7875 7876 /* Note that in sync mode, it's the caller's responsibility to 7877 * unlock the medium. */ 7860 /* Everything is explicitly unlocked when the task exits, 7861 * as the task destruction also destroys the media chain. */ 7878 7862 7879 7863 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.