@@ -59,14 +59,18 @@ #ifdef OF_HAVE_BLOCKS of_thread_block_t block; #endif id returnValue; OFRunLoop *runLoop; + OFString *name; } -#if defined(OF_HAVE_PROPERTIES) && defined(OF_HAVE_BLOCKS) +#ifdef OF_HAVE_PROPERTIES +# ifdef OF_HAVE_BLOCKS @property (copy) of_thread_block_t block; +# endif +@property (copy) OFString *name; #endif /*! * @brief Creates a new thread. * @@ -200,6 +204,20 @@ * @brief Returns the run loop for the thread. * * @return The run loop for the thread */ - (OFRunLoop*)runLoop; + +/*! + * @brief Returns the name of the thread or nil if none has been set. + * + * @return The name of the thread or nik if none has been set + */ +- (OFString*)name; + +/*! + * @brief Sets the name for the thread. + * + * @param name The name for the thread + */ +- (void)setName: (OFString*)name; @end