Differences From Artifact [106a17bb8d]:
- File src/OFStreamObserver_poll.m — part of check-in [8892ae9fcc] at 2012-07-12 01:28:46 on branch trunk — Don't access isa directly. (user: js, size: 3493) [annotate] [blame] [check-ins using]
To Artifact [17f5ac1ccb]:
- File
src/OFStreamObserver_poll.m
— part of check-in
[417b213d41]
at
2012-07-16 23:49:50
on branch trunk
— Add OF_ENSURE.
This is to be used when the condition includes a statement that needs to
be executed, as with assert, this would not be executed anymore when
NDEBUG is defined. (user: js, size: 3496) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
14 15 16 17 18 19 20 | * file. */ #include "config.h" #define __NO_EXT_QNX | < > > | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | * file. */ #include "config.h" #define __NO_EXT_QNX #include <unistd.h> #include <poll.h> #import "OFStreamObserver_poll.h" #import "OFDataArray.h" #import "OFAutoreleasePool.h" #import "OFOutOfRangeException.h" #import "macros.h" @implementation OFStreamObserver_poll - init { self = [super init]; @try { |
︙ | ︙ | |||
146 147 148 149 150 151 152 | } for (i = 0; i < nFDs; i++) { if (FDsCArray[i].revents & POLLIN) { if (FDsCArray[i].fd == cancelFD[0]) { char buffer; | | | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | } for (i = 0; i < nFDs; i++) { if (FDsCArray[i].revents & POLLIN) { if (FDsCArray[i].fd == cancelFD[0]) { char buffer; OF_ENSURE(read(cancelFD[0], &buffer, 1) > 0); FDsCArray[i].revents = 0; continue; } [delegate streamIsReadyForReading: FDToStream[FDsCArray[i].fd]]; |
︙ | ︙ |