Removing what appears to have been unnecessary ceremony and incantations for keeping the network thread runloop running.

This commit is contained in:
Mattt Thompson 2013-06-18 20:36:41 -07:00
parent d1b7ff8f3c
commit 0ae4872df8

View file

@ -186,13 +186,9 @@ static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
@synthesize redirectResponse = _redirectResponse; @synthesize redirectResponse = _redirectResponse;
@synthesize lock = _lock; @synthesize lock = _lock;
+ (void) __attribute__((noreturn)) networkRequestThreadEntryPoint:(id)__unused object { + (void)networkRequestThreadEntryPoint:(id)__unused object {
do { [[NSThread currentThread] setName:@"AFNetworking"];
@autoreleasepool { [[NSRunLoop currentRunLoop] run];
[[NSThread currentThread] setName:@"AFNetworking"];
[[NSRunLoop currentRunLoop] run];
}
} while (YES);
} }
+ (NSThread *)networkRequestThread { + (NSThread *)networkRequestThread {