Differences From Artifact [410ce014df]:
- File
src/OFRunLoop.m
— part of check-in
[56ec27cbdf]
at
2013-05-01 21:05:39
on branch trunk
— OFRunLoop: Work correctly for threads && !sockets.
This was only an issue with --enable-threads --disable-sockets. (user: js, size: 15861) [annotate] [blame] [check-ins using]
To Artifact [3252e51e8a]:
- File
src/OFRunLoop.m
— part of check-in
[0fea69d149]
at
2013-07-04 13:59:28
on branch trunk
— Remove useless barriers.
We don't care about the order here, we only care about getting the
update. The barrier is only useful to force the order. (user: js, size: 15745) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
622 623 624 625 626 627 628 | for (;;) { void *pool; OFDate *now; OFTimer *timer; OFDate *nextTimer; | < < < | 622 623 624 625 626 627 628 629 630 631 632 633 634 635 | for (;;) { void *pool; OFDate *now; OFTimer *timer; OFDate *nextTimer; if (!_running) break; pool = objc_autoreleasePoolPush(); now = [OFDate date]; #ifdef OF_HAVE_THREADS |
︙ | ︙ | |||
709 710 711 712 713 714 715 | objc_autoreleasePoolPop(pool); } } - (void)stop { _running = false; | < < < | 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 | objc_autoreleasePoolPop(pool); } } - (void)stop { _running = false; #if defined(OF_HAVE_SOCKETS) [_streamObserver cancel]; #elif defined(OF_HAVE_THREADS) [_condition lock]; [_condition signal]; [_condition unlock]; #endif } @end |