Changeset 29885 in vbox
- Timestamp:
- May 31, 2010 9:04:43 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp
r29040 r29885 263 263 RTStrFree(pszValue); 264 264 265 return rc; 266 } 267 268 269 /** 270 * Flushes the cache by writing every item regardless of its state. 271 * 272 * @param pCache The property cache. 273 */ 274 int VBoxServicePropCacheFlush(PVBOXSERVICEVEPROPCACHE pCache) 275 { 276 AssertPtr(pCache); 277 int rc = VINF_SUCCESS; 278 PVBOXSERVICEVEPROPCACHEENTRY pNodeIt = NULL; 279 if (RT_SUCCESS(RTCritSectEnter(&pCache->CritSect))) 280 { 281 RTListForEach(&pCache->ListEntries, pNodeIt, VBOXSERVICEVEPROPCACHEENTRY, Node) 282 { 283 rc = VBoxServiceWritePropF(pCache->uClientID, pNodeIt->pszName, pNodeIt->pszValue); 284 if (RT_FAILURE(rc)) 285 break; 286 } 287 RTCritSectLeave(&pCache->CritSect); 288 } 265 289 return rc; 266 290 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.h
r29040 r29885 30 30 int VBoxServicePropCacheUpdate(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName, const char *pszValueFormat, ...); 31 31 int VBoxServicePropCacheUpdateEx(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName, uint32_t fFlags, const char *pszValueReset, const char *pszValueFormat, ...); 32 int VBoxServicePropCacheFlush(PVBOXSERVICEVEPROPCACHE pCache); 32 33 void VBoxServicePropCacheDestroy(PVBOXSERVICEVEPROPCACHE pCache); 33 34 #endif
Note:
See TracChangeset
for help on using the changeset viewer.