@@ -191,11 +191,11 @@ * @brief Initializes an already allocated thread with the specified block. * * @param threadBlock A block which is executed by the thread * @return An initialized OFThread. */ -- initWithThreadBlock: (of_thread_block_t)threadBlock; +- (instancetype)initWithThreadBlock: (of_thread_block_t)threadBlock; # endif /*! * @brief The main routine of the thread. You need to reimplement this! * @@ -268,10 +268,10 @@ * * @param stackSize The stack size for the thread */ - (void)setStackSize: (size_t)stackSize; #else -- init OF_UNAVAILABLE; +- (instancetype)init OF_UNAVAILABLE; #endif @end OF_ASSUME_NONNULL_END