Differences From Artifact [c77b1b02fd]:
- File src/OFStreamObserver_poll.m — part of check-in [1af1677350] at 2011-09-20 19:06:58 on branch trunk — Remove useless imports. (user: js, size: 3426) [annotate] [blame] [check-ins using]
To Artifact [032c6d7a87]:
- File
src/OFStreamObserver_poll.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 3432) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
131 132 133 134 135 136 137 | return YES; FDsCArray = [FDs cArray]; nFDs = [FDs count]; #ifdef OPEN_MAX if (nFDs > OPEN_MAX) | | | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | return YES; FDsCArray = [FDs cArray]; nFDs = [FDs count]; #ifdef OPEN_MAX if (nFDs > OPEN_MAX) @throw [OFOutOfRangeException exceptionWithClass: isa]; #endif if (poll(FDsCArray, (nfds_t)nFDs, timeout) < 1) return NO; for (i = 0; i < nFDs; i++) { if (FDsCArray[i].revents & POLLIN) { |
︙ | ︙ |