Differences From Artifact [769871dec1]:
- File
src/OFProcess.m
— part of check-in
[1255f3a11a]
at
2012-08-10 20:08:24
on branch trunk
— Directly use the runtime's autorelease pools.
This greatly improves performance, as it gets rid of the overhead of
OFAutoreleasePool. (user: js, size: 7808) [annotate] [blame] [check-ins using]
To Artifact [fe517b8418]:
- File
src/OFProcess.m
— part of check-in
[440e95fd4a]
at
2012-09-12 17:27:53
on branch trunk
— Split -[OFStream fileDescriptor].
It is now -[fileDescriptorForReading] and -[fileDescriptorForWriting].
The split was necessary as some stream types (e.g. OFProcess) don't have
a single file descriptor, but two. This allows to use those stream types
with OFStreamObserver as well. (user: js, size: 7969) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
290 291 292 293 294 295 296 | - (void)dealloc { [self close]; [super dealloc]; } | < | > | | > > > > > | > > > > > > > > > | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | - (void)dealloc { [self close]; [super dealloc]; } - (int)fileDescriptorForReading { #ifndef _WIN32 return readPipe[0]; #else @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; #endif } - (int)fileDescriptorForWRiting { #ifndef _WIN32 return writePipe[1]; #else @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; #endif } - (void)closeForWriting { #ifndef _WIN32 if (writePipe[1] != -1) close(writePipe[1]); |
︙ | ︙ |