ObjFW  Check-in [c1f5396016]

Overview
Comment:Fix --disable-threads.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c1f53960166bc4a7b46765d2d961bcf54006935e0c8328047ed9548f95528d7f
User & Date: js on 2013-04-18 19:54:23
Other Links: manifest | tags
Context
2013-04-24
20:49
OFThread: Fix missing underscore. check-in: 410526006b user: js tags: trunk
2013-04-18
19:54
Fix --disable-threads. check-in: c1f5396016 user: js tags: trunk
2013-04-15
12:52
vasprintf: Create a copy of arguments. check-in: c90e101c7c user: js tags: trunk
Changes

Modified src/OFRunLoop.m from [274be6b78a] to [9ced28ca2c].

600
601
602
603
604
605
606

607

608
609
610
611
612
613
614

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


		of_memory_read_barrier();

		if (!_running)
			break;

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

#ifdef OF_HAVE_THREADS







>

>







600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616

	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
667
668
669
670
671
672
673

674

675
676
677
		objc_autoreleasePoolPop(pool);
	}
}

- (void)stop
{
	_running = false;

	of_memory_write_barrier();

	[_streamObserver cancel];
}
@end







>

>



669
670
671
672
673
674
675
676
677
678
679
680
681
		objc_autoreleasePoolPop(pool);
	}
}

- (void)stop
{
	_running = false;
#ifdef OF_HAVE_THREADS
	of_memory_write_barrier();
#endif
	[_streamObserver cancel];
}
@end