- Timestamp:
- Mar 8, 2012 4:14:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r40061 r40403 122 122 /* Create a new context ID and assign it. */ 123 123 uint32_t uNewContextID = 0; 124 uint32_t uTries = 0; 124 125 for (;;) 125 126 { … … 137 138 break; 138 139 } 140 141 if (++uTries == UINT32_MAX) 142 break; /* Don't try too hard. */ 139 143 } 140 144 … … 191 195 } 192 196 197 /** 198 * Checks whether a callback with the given context ID 199 * exists or not. 200 * Does not do locking! 201 * 202 * @return bool True, if callback exists, false if not. 203 * @param uContextID Context ID to check. 204 */ 193 205 bool Guest::callbackExists(uint32_t uContextID) 194 206 { 195 207 AssertReturn(uContextID, false); 196 197 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);198 208 199 209 CallbackMapIter it = mCallbackMap.find(uContextID);
Note:
See TracChangeset
for help on using the changeset viewer.