@@ -305,11 +305,11 @@ if (!of_tlskey_set(threadSelfKey, mainThread)) @throw [OFInitializationFailedException exceptionWithClass: self]; } -- init +- (instancetype)init { self = [super init]; @try { if (!of_thread_attr_init(&_attr)) @@ -322,11 +322,11 @@ return self; } # ifdef OF_HAVE_BLOCKS -- initWithThreadBlock: (of_thread_block_t)threadBlock +- (instancetype)initWithThreadBlock: (of_thread_block_t)threadBlock { self = [self init]; @try { _threadBlock = [threadBlock copy]; @@ -385,11 +385,11 @@ _running = OF_THREAD_NOT_RUNNING; return _returnValue; } -- copy +- (id)copy { return [self retain]; } - (OFRunLoop *)runLoop @@ -458,11 +458,11 @@ # endif [super dealloc]; } #else -- init +- (instancetype)init { OF_INVALID_INIT_METHOD } #endif @end