502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
#ifdef OF_HAVE_THREADS
[_condition release];
#endif
[super dealloc];
}
- (of_comparison_result_t)compare: (id <OFComparing>)object
{
OFTimer *timer;
if (![(id)object isKindOfClass: [OFTimer class]])
@throw [OFInvalidArgumentException exception];
timer = (OFTimer *)object;
return [_fireDate compare: timer->_fireDate];
}
- (void)of_setInRunLoop: (OFRunLoop *)runLoop mode: (of_run_loop_mode_t)mode
{
OFRunLoop *oldInRunLoop = _inRunLoop;
|
|
<
<
|
<
<
|
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
|
#ifdef OF_HAVE_THREADS
[_condition release];
#endif
[super dealloc];
}
- (of_comparison_result_t)compare: (OFTimer *)timer
{
if (![timer isKindOfClass: [OFTimer class]])
@throw [OFInvalidArgumentException exception];
return [_fireDate compare: timer->_fireDate];
}
- (void)of_setInRunLoop: (OFRunLoop *)runLoop mode: (of_run_loop_mode_t)mode
{
OFRunLoop *oldInRunLoop = _inRunLoop;
|