@@ -18,10 +18,11 @@ #import "OFList.h" #import "threading.h" @class OFDate; +@class OFSortedList; #ifdef OF_HAVE_BLOCKS typedef id (^of_thread_block_t)(id object); #endif @@ -92,10 +93,16 @@ } running; #ifdef OF_HAVE_BLOCKS of_thread_block_t block; #endif id returnValue; +#ifdef OF_THREAD_M +@protected +#else +@private +#endif + OFSortedList *timersQueue; } #if defined(OF_HAVE_PROPERTIES) && defined(OF_HAVE_BLOCKS) @property (copy) of_thread_block_t block; #endif @@ -247,10 +254,12 @@ - (id)main; /** * \brief This routine is exectued when the thread's main method has finished * executing or terminate has been called. + * + * \note Be sure to call [super handleTermination]! */ - (void)handleTermination; /** * \brief Starts the thread. @@ -261,10 +270,12 @@ * \brief Joins a thread. * * \return The object returned by the main method of the thread. */ - (id)join; + +- (OFSortedList*)_timersQueue; @end /** * \brief A class for creating mutual exclusions. */