@@ -19,10 +19,11 @@ #ifdef OF_HAVE_BLOCKS typedef void (^of_timer_block_t)(void); #endif @class OFDate; +@class OFCondition; /** * \brief A class for creating and firing timers. */ @interface OFTimer: OFObject @@ -35,10 +36,11 @@ BOOL repeats; #ifdef OF_HAVE_BLOCKS of_timer_block_t block; #endif BOOL isValid; + OFCondition *condition; } /** * \brief Creates and schedules a new timer with the specified time interval. * @@ -282,6 +284,11 @@ * * \return The time interval in which the timer will repeat, if it is a * repeating timer */ - (double)timeInterval; + +/** + * \brief Waits until the timer fired. + */ +- (void)waitUntilDone; @end