标签:style class blog code tar ext
NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil]; [thread start];
1 + (NSThread *)mainThread; 2 - (BOOL)isMainThread; 3 + (BOOL)isMainThread;
1 NSThread *current = [NSThread currentThread];
1 + (double)threadPriority; 2 + (BOOL)setThreadPriority:(double)p; 3 - (double)threadPriority; 4 - (BOOL)setThreadPriority:(double)p;
1 - (void) setName:(NSString *)n; 2 - (NSString *)name;
1 [NSThread detachNewThreadSelector:@selector(run) toTarget:self withObject:nil];
1 [self performSelectorInBackground:@selector(run) withObject:nil];
1 - (void)start;
1 + (void)sleepUntilDate:(NSDate *)date; 2 + (void)sleepForTimeInterval:(NSTimeInterval)ti;
1 + (void)exit;
1 @property (assign, atomic) int age; 2 - (void)setAge:(int)age 3 { 4 @synchronized(self) { 5 _age = age; 6 } 7 }
1 - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait; 2 - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wait;
标签:style class blog code tar ext
原文地址:http://www.cnblogs.com/zfan/p/3805036.html