Changeset 32628 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Sep 20, 2010 9:21:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r32535 r32628 77 77 /** The guest property cache. */ 78 78 static VBOXSERVICEVEPROPCACHE g_VMInfoPropCache; 79 /** The session ID. Changes whenever the VM is restored or resetted. */ 80 static uint64_t g_idSession; 79 81 80 82 … … 113 115 int rc = RTSemEventMultiCreate(&g_hVMInfoEvent); 114 116 AssertRCReturn(rc, rc); 117 118 rc = VbglR3GetSessionId(&g_idSession); 119 /* The error ignored as this information is not available with VBox < 3.2.10. */ 115 120 116 121 rc = VbglR3GuestPropConnect(&g_uVMInfoGuestPropSvcClientID); … … 737 742 if (RT_FAILURE(rc)) 738 743 break; 744 745 /* 746 * Flush all properties if we were restored. 747 */ 748 uint64_t idNewSession = g_idSession; 749 VbglR3GetSessionId(&idNewSession); 750 if (idNewSession != g_idSession) 751 { 752 VBoxServiceVerbose(3, "VMInfo: Session ID changed, flushing all properties.\n"); 753 vboxserviceVMInfoWriteFixedProperties(); 754 VBoxServicePropCacheFlush(&g_VMInfoPropCache); 755 g_idSession = idNewSession; 756 } 739 757 740 758 /*
Note:
See TracChangeset
for help on using the changeset viewer.