Differences From Artifact [ff67a9acd7]:
- File src/OFStreamObserver.m — part of check-in [ce70e17b38] at 2012-01-05 00:56:18 on branch trunk — Update copyright. (user: js, size: 8762) [annotate] [blame] [check-ins using]
To Artifact [89d321be6d]:
- File
src/OFStreamObserver.m
— part of check-in
[008be86a16]
at
2012-03-12 11:54:22
on branch trunk
— OFArray: +[arrayWithCArray:length:] -> +[arrayWithObjects:count:].
This is required for the new array literals. (user: js, size: 8770) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
293 294 295 296 297 298 299 | selector: _cmd]; } - (void)_processQueue { [mutex lock]; @try { | | | | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | selector: _cmd]; } - (void)_processQueue { [mutex lock]; @try { OFStream **queueObjects = [queue objects]; int *queueInfoCArray = [queueInfo cArray]; int *queueFDsCArray = [queueFDs cArray]; size_t i, count = [queue count]; for (i = 0; i < count; i++) { OFStream *stream = queueObjects[i]; int action = queueInfoCArray[i]; int fd = queueFDsCArray[i]; if ((action & QUEUE_ACTION) == QUEUE_ADD) { if (fd > maxFD) { maxFD = fd; FDToStream = [self |
︙ | ︙ | |||
372 373 374 375 376 377 378 | @throw [OFNotImplementedException exceptionWithClass: isa selector: _cmd]; } - (BOOL)_processCache { OFAutoreleasePool *pool; | | | | | | 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | @throw [OFNotImplementedException exceptionWithClass: isa selector: _cmd]; } - (BOOL)_processCache { OFAutoreleasePool *pool; OFStream **objects = [readStreams objects]; size_t i, count = [readStreams count]; BOOL foundInCache = NO; pool = [[OFAutoreleasePool alloc] init]; for (i = 0; i < count; i++) { if ([objects[i] pendingBytes] > 0 && ![objects[i] _isWaitingForDelimiter]) { [delegate streamIsReadyForReading: objects[i]]; foundInCache = YES; [pool releaseObjects]; } } [pool release]; |
︙ | ︙ |