* Returns an already locked ObjectLock if the dictionary is frozen. * Otherwise, returns an unlocked object lock. * * @returns An object lock. */
| 291 | * @returns An object lock. |
| 292 | */ |
| 293 | ObjectLock Dictionary::LockIfRequired() |
| 294 | { |
| 295 | if (Frozen()) { |
| 296 | return ObjectLock(this, std::defer_lock); |
| 297 | } |
| 298 | return ObjectLock(this); |
| 299 | } |
| 300 | |
| 301 | Value Dictionary::GetFieldByName(const String& field, bool, const DebugInfo& debugInfo) const |
| 302 | { |