Differences From Artifact [d42000199a]:
- File
src/OFRunLoop.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 14622) [annotate] [blame] [check-ins using]
To Artifact [3b393cf990]:
- File src/OFRunLoop.m — part of check-in [27138ee85b] at 2013-03-14 19:25:48 on branch trunk — Add a few memory barriers. (user: js, size: 14714) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
593 594 595 596 597 598 599 | OF_ENSURE(0); } - (void)run { _running = true; | | | | > > > > > > > | 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | OF_ENSURE(0); } - (void)run { _running = true; 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 [_timersQueueLock lock]; @try { #endif of_list_object_t *listObject = [_timersQueue firstListObject]; |
︙ | ︙ | |||
659 660 661 662 663 664 665 666 667 668 | objc_autoreleasePoolPop(pool); } } - (void)stop { _running = false; [_streamObserver cancel]; } @end | > | 666 667 668 669 670 671 672 673 674 675 676 | objc_autoreleasePoolPop(pool); } } - (void)stop { _running = false; of_memory_write_barrier(); [_streamObserver cancel]; } @end |