NSRunLoop+SRWebSocket.m 684 B

123456789101112131415161718192021222324252627
  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 "NSRunLoop+SRWebSocket.h"
  12. #import "NSRunLoop+SRWebSocketPrivate.h"
  13. #import "SRRunLoopThread.h"
  14. // Required for object file to always be linked.
  15. void import_NSRunLoop_SRWebSocket(void) { }
  16. @implementation NSRunLoop (SRWebSocket)
  17. + (NSRunLoop *)SR_networkRunLoop
  18. {
  19. return [SRRunLoopThread sharedThread].runLoop;
  20. }
  21. @end