@@ -27,11 +27,11 @@ @class OFDate; @class OFSortedList; @class OFRunLoop; #ifdef OF_HAVE_BLOCKS -typedef id (^of_thread_block_t)(id object); +typedef id (^of_thread_block_t)(void); #endif /*! * @brief A class which provides portable threads. * @@ -45,13 +45,11 @@ */ @interface OFThread: OFObject { #ifdef OF_THREAD_M @public -#endif - id object; -#ifndef OF_THREAD_M +#else @private #endif of_thread_t thread; enum { OF_THREAD_NOT_RUNNING, @@ -74,18 +72,10 @@ * * @return A new, autoreleased thread */ + (instancetype)thread; -/*! - * @brief Creates a new thread with the specified object. - * - * @param object An object which is passed for use in the main method or nil - * @return A new, autoreleased thread - */ -+ (instancetype)threadWithObject: (id)object; - #ifdef OF_HAVE_BLOCKS /*! * @brief Creates a new thread with the specified block. * * @param block A block which is executed by the thread @@ -164,18 +154,10 @@ */ + (void)terminateWithObject: (id)object; + (void)OF_createMainThread; -/*! - * @brief Initializes an already allocated thread with the specified object. - * - * @param object An object which is passed for use in the main method or nil - * @return An initialized OFThread. - */ -- initWithObject: (id)object; - #ifdef OF_HAVE_BLOCKS /*! * @brief Initializes an already allocated thread with the specified block. * * @param block A block which is executed by the thread