ObjFW  Diff

Differences From Artifact [410ce014df]:

To Artifact [3252e51e8a]:


622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
622
623
624
625
626
627
628



629
630
631
632
633
634
635







-
-
-








	for (;;) {
		void *pool;
		OFDate *now;
		OFTimer *timer;
		OFDate *nextTimer;

#ifdef OF_HAVE_THREADS
		of_memory_read_barrier();
#endif
		if (!_running)
			break;

		pool = objc_autoreleasePoolPush();
		now = [OFDate date];

#ifdef OF_HAVE_THREADS
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
706
707
708
709
710
711
712



713
714
715
716
717
718
719
720
721







-
-
-









		objc_autoreleasePoolPop(pool);
	}
}

- (void)stop
{
	_running = false;
#ifdef OF_HAVE_THREADS
	of_memory_write_barrier();
#endif
#if defined(OF_HAVE_SOCKETS)
	[_streamObserver cancel];
#elif defined(OF_HAVE_THREADS)
	[_condition lock];
	[_condition signal];
	[_condition unlock];
#endif
}
@end