QGVAPSafeMutableDictionary.h 1.1 KB

123456789101112131415161718192021222324252627
  1. // QGVAPSafeMutableDictionary.h
  2. // Tencent is pleased to support the open source community by making vap available.
  3. //
  4. // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
  5. //
  6. // Licensed under the MIT License (the "License"); you may not use this file except in
  7. // compliance with the License. You may obtain a copy of the License at
  8. //
  9. // http://opensource.org/licenses/MIT
  10. //
  11. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  12. // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  13. // either express or implied. See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #import <Foundation/Foundation.h>
  16. /**
  17. This class inherits from NSMutableDictionary, make it thread safe and allow Recursive lock.
  18. @discussion access performance would lower than NSMutableDictionary, or using semaphore but equal to @sychronized.
  19. @warning Fast enumerate and enumerator are not thread safe
  20. */
  21. @interface QGVAPSafeMutableDictionary : NSMutableDictionary
  22. @end