Няма описание

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. #import "RNCWKProcessPoolManager.h"
  9. @interface RNCWKProcessPoolManager() {
  10. WKProcessPool *_sharedProcessPool;
  11. }
  12. @end
  13. @implementation RNCWKProcessPoolManager
  14. + (id) sharedManager {
  15. static RNCWKProcessPoolManager *_sharedManager = nil;
  16. @synchronized(self) {
  17. if(_sharedManager == nil) {
  18. _sharedManager = [[super alloc] init];
  19. }
  20. return _sharedManager;
  21. }
  22. }
  23. - (WKProcessPool *)sharedProcessPool {
  24. if (!_sharedProcessPool) {
  25. _sharedProcessPool = [[WKProcessPool alloc] init];
  26. }
  27. return _sharedProcessPool;
  28. }
  29. @end