Changeset 47540 in vbox
- Timestamp:
- Aug 5, 2013 10:22:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r47537 r47540 995 995 uint32_t VBOXCALL supdrvSessionRetain(PSUPDRVSESSION pSession) 996 996 { 997 uint32_t cRefs; 997 998 AssertPtrReturn(pSession, UINT32_MAX); 998 999 AssertReturn(SUP_IS_SESSION_VALID(pSession), UINT32_MAX); 999 1000 1000 uint32_tcRefs = ASMAtomicIncU32(&pSession->cRefs);1001 cRefs = ASMAtomicIncU32(&pSession->cRefs); 1001 1002 AssertMsg(cRefs > 1 && cRefs < _1M, ("%#x %p\n", cRefs, pSession)); 1002 1003 return cRefs; … … 1011 1012 uint32_t VBOXCALL supdrvSessionRelease(PSUPDRVSESSION pSession) 1012 1013 { 1014 uint32_t cRefs; 1013 1015 AssertPtrReturn(pSession, UINT32_MAX); 1014 1016 AssertReturn(SUP_IS_SESSION_VALID(pSession), UINT32_MAX); 1015 1017 1016 uint32_tcRefs = ASMAtomicDecU32(&pSession->cRefs);1018 cRefs = ASMAtomicDecU32(&pSession->cRefs); 1017 1019 AssertMsg(cRefs < _1M, ("%#x %p\n", cRefs, pSession)); 1018 1020 if (cRefs == 0)
Note:
See TracChangeset
for help on using the changeset viewer.