15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
*/
#import "OFObject.h"
@class OFTimer;
@class OFDate;
@class OFRunLoop;
#ifdef OF_THREADS
@class OFCondition;
#endif
#ifdef OF_HAVE_BLOCKS
typedef void (^of_timer_block_t)(OFTimer*);
#endif
|
|
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
*/
#import "OFObject.h"
@class OFTimer;
@class OFDate;
@class OFRunLoop;
#ifdef OF_HAVE_THREADS
@class OFCondition;
#endif
#ifdef OF_HAVE_BLOCKS
typedef void (^of_timer_block_t)(OFTimer*);
#endif
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
SEL selector;
uint8_t arguments;
BOOL repeats;
#ifdef OF_HAVE_BLOCKS
of_timer_block_t block;
#endif
BOOL isValid;
#ifdef OF_THREADS
OFCondition *condition;
BOOL done;
#endif
OFRunLoop *inRunLoop;
}
#ifdef OF_HAVE_PROPERTIES
|
|
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
SEL selector;
uint8_t arguments;
BOOL repeats;
#ifdef OF_HAVE_BLOCKS
of_timer_block_t block;
#endif
BOOL isValid;
#ifdef OF_HAVE_THREADS
OFCondition *condition;
BOOL done;
#endif
OFRunLoop *inRunLoop;
}
#ifdef OF_HAVE_PROPERTIES
|
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
* repeating timer.
*
* @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
|
|
|
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
* repeating timer.
*
* @return The time interval in which the timer will repeat, if it is a
* repeating timer
*/
- (double)timeInterval;
#ifdef OF_HAVE_THREADS
/*!
* @brief Waits until the timer fired.
*/
- (void)waitUntilDone;
#endif
- (void)OF_setInRunLoop: (OFRunLoop*)inRunLoop;
@end
|