Differences From Artifact [76c781112c]:
- File
src/OFRunLoop.m
— part of check-in
[71d45a29d1]
at
2013-04-26 20:40:43
on branch trunk
— Make sure +[OFThread sleep*] is always available.
This means that even if --disable-threads has been specified, it is
possible to use +[OFThread sleep*] to sleep the current (and only)
thread. (user: js, size: 15474) [annotate] [blame] [check-ins using]
To Artifact [fcdc461826]:
- File src/OFRunLoop.m — part of check-in [ab9ad6e515] at 2013-04-30 22:47:28 on branch trunk — observeWithTimeout: -> observeForTimeInterval:. (user: js, size: 15486) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
670 671 672 673 674 675 676 | /* Watch for stream events until the next timer is due */ if (nextTimer != nil) { double timeout = [nextTimer timeIntervalSinceNow]; if (timeout > 0) #ifdef OF_HAVE_SOCKETS | | > | 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 | /* Watch for stream events until the next timer is due */ if (nextTimer != nil) { double timeout = [nextTimer timeIntervalSinceNow]; if (timeout > 0) #ifdef OF_HAVE_SOCKETS [_streamObserver observeForTimeInterval: timeout]; #else [OFThread sleepForTimeInterval: timeout]; #endif } else { /* * No more timers: Just watch for streams until we get * an event. If a timer is added by another thread, it |
︙ | ︙ |