@@ -97,11 +97,11 @@ static OFThread *mainThread; static void callMain(id object) { - OFThread *thread = (OFThread*)object; + OFThread *thread = (OFThread *)object; if (!of_tlskey_set(threadSelfKey, thread)) @throw [OFInitializationFailedException exceptionWithClass: [thread class]]; @@ -155,21 +155,21 @@ { return [[[self alloc] initWithThreadBlock: threadBlock] autorelease]; } # endif -+ (OFThread*)currentThread ++ (OFThread *)currentThread { return of_tlskey_get(threadSelfKey); } -+ (OFThread*)mainThread ++ (OFThread *)mainThread { return mainThread; } -+ (OFMutableDictionary*)threadDictionary ++ (OFMutableDictionary *)threadDictionary { OFThread *thread = of_tlskey_get(threadSelfKey); if (thread->_threadDictionary == nil) thread->_threadDictionary = [[OFMutableDictionary alloc] init]; @@ -220,11 +220,11 @@ usleep((useconds_t)lrint( (timeInterval - floor(timeInterval)) * 1000000)); #endif } -+ (void)sleepUntilDate: (OFDate*)date ++ (void)sleepUntilDate: (OFDate *)date { [self sleepForTimeInterval: [date timeIntervalSinceNow]]; } + (void)yield @@ -367,17 +367,17 @@ - copy { return [self retain]; } -- (OFRunLoop*)runLoop +- (OFRunLoop *)runLoop { # ifdef OF_HAVE_ATOMIC_OPS if (_runLoop == nil) { OFRunLoop *tmp = [[OFRunLoop alloc] init]; - if (!of_atomic_ptr_cmpswap((void**)&_runLoop, nil, tmp)) + if (!of_atomic_ptr_cmpswap((void **)&_runLoop, nil, tmp)) [tmp release]; } # else @synchronized (self) { if (_runLoop == nil) @@ -386,16 +386,16 @@ # endif return [[_runLoop retain] autorelease]; } -- (OFString*)name +- (OFString *)name { return [[_name copy] autorelease]; } -- (void)setName: (OFString*)name +- (void)setName: (OFString *)name { OFString *old = name; _name = [name copy]; [old release];