Changeset 54965 in vbox for trunk/src/VBox
- Timestamp:
- Mar 26, 2015 12:15:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp
r54752 r54965 1050 1050 /* Simple mode. Every file has its own async I/O manager. */ 1051 1051 rc = pdmacFileAioMgrCreate(pEpClassFile, &pAioMgr, PDMACEPFILEMGRTYPE_SIMPLE); 1052 AssertRC(rc);1053 1052 } 1054 1053 else … … 1065 1064 1066 1065 if (!pAioMgr) 1066 rc = pdmacFileAioMgrCreate(pEpClassFile, &pAioMgr, enmMgrType); 1067 } 1068 1069 if (RT_SUCCESS(rc)) 1070 { 1071 pEpFile->AioMgr.pTreeRangesLocked = (PAVLRFOFFTREE)RTMemAllocZ(sizeof(AVLRFOFFTREE)); 1072 if (!pEpFile->AioMgr.pTreeRangesLocked) 1073 rc = VERR_NO_MEMORY; 1074 else 1067 1075 { 1068 rc = pdmacFileAioMgrCreate(pEpClassFile, &pAioMgr, enmMgrType); 1069 AssertRC(rc); 1070 } 1071 } 1072 1073 pEpFile->AioMgr.pTreeRangesLocked = (PAVLRFOFFTREE)RTMemAllocZ(sizeof(AVLRFOFFTREE)); 1074 if (!pEpFile->AioMgr.pTreeRangesLocked) 1075 rc = VERR_NO_MEMORY; 1076 else 1077 { 1078 pEpFile->enmState = PDMASYNCCOMPLETIONENDPOINTFILESTATE_ACTIVE; 1079 1080 /* Assign the endpoint to the thread. */ 1081 rc = pdmacFileAioMgrAddEndpoint(pAioMgr, pEpFile); 1082 if (RT_FAILURE(rc)) 1083 { 1084 RTMemFree(pEpFile->AioMgr.pTreeRangesLocked); 1085 MMR3HeapFree(pEpFile->pTasksFreeHead); 1076 pEpFile->enmState = PDMASYNCCOMPLETIONENDPOINTFILESTATE_ACTIVE; 1077 1078 /* Assign the endpoint to the thread. */ 1079 rc = pdmacFileAioMgrAddEndpoint(pAioMgr, pEpFile); 1080 if (RT_FAILURE(rc)) 1081 { 1082 RTMemFree(pEpFile->AioMgr.pTreeRangesLocked); 1083 MMR3HeapFree(pEpFile->pTasksFreeHead); 1084 } 1086 1085 } 1087 1086 }
Note:
See TracChangeset
for help on using the changeset viewer.