@@ -16,12 +16,14 @@ #import "OFObject.h" @class OFTimer; @class OFDate; -@class OFCondition; @class OFRunLoop; +#ifdef OF_THREADS +@class OFCondition; +#endif #ifdef OF_HAVE_BLOCKS typedef void (^of_timer_block_t)(OFTimer*); #endif @@ -37,12 +39,15 @@ uint8_t arguments; BOOL repeats; #ifdef OF_HAVE_BLOCKS of_timer_block_t block; #endif - BOOL isValid, done; + BOOL isValid; +#ifdef OF_THREADS OFCondition *condition; + BOOL done; +#endif OFRunLoop *inRunLoop; } #ifdef OF_HAVE_PROPERTIES @property (retain) OFDate *fireDate; @@ -308,12 +313,14 @@ * @return The time interval in which the timer will repeat, if it is a * repeating timer */ - (double)timeInterval; +#ifdef OF_THREADS /*! * @brief Waits until the timer fired. */ - (void)waitUntilDone; +#endif - (void)OF_setInRunLoop: (OFRunLoop*)inRunLoop; @end