SRRunLoopThread.h 569 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright 2012 Square Inc.
  3. // Portions Copyright (c) 2016-present, Facebook, Inc.
  4. //
  5. // All rights reserved.
  6. //
  7. // This source code is licensed under the BSD-style license found in the
  8. // LICENSE file in the root directory of this source tree. An additional grant
  9. // of patent rights can be found in the PATENTS file in the same directory.
  10. //
  11. #import <Foundation/Foundation.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface SRRunLoopThread : NSThread
  14. @property (nonatomic, strong, readonly) NSRunLoop *runLoop;
  15. + (instancetype)sharedThread;
  16. @end
  17. NS_ASSUME_NONNULL_END