Differences From Artifact [c2387049cc]:
- File
src/OFStreamObserver_kqueue.m
— part of check-in
[d5ddb2cb48]
at
2012-06-06 13:09:08
on branch trunk
— Rework OFDataArray API.
Also adds more checks. (user: js, size: 3467) [annotate] [blame] [check-ins using] [more...]
To Artifact [5e762c9efc]:
- File src/OFStreamObserver_kqueue.m — part of check-in [8892ae9fcc] at 2012-07-12 01:28:46 on branch trunk — Don't access isa directly. (user: js, size: 3492) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
38 39 40 41 42 43 44 | - init { self = [super init]; @try { if ((kernelQueue = kqueue()) == -1) @throw [OFInitializationFailedException | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - init { self = [super init]; @try { if ((kernelQueue = kqueue()) == -1) @throw [OFInitializationFailedException exceptionWithClass: [self class]]; changeList = [[OFDataArray alloc] initWithItemSize: sizeof(struct kevent)]; [self _addFileDescriptorForReading: cancelFD[0]]; } @catch (id e) { [self release]; |
︙ | ︙ | |||
117 118 119 120 121 122 123 | if (events == -1) { switch (errno) { case EINTR: [pool release]; return NO; case ENOMEM: [pool release]; | | > | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | if (events == -1) { switch (errno) { case EINTR: [pool release]; return NO; case ENOMEM: [pool release]; @throw [OFOutOfMemoryException exceptionWithClass: [self class]]; default: assert(0); } } [changeList removeAllItems]; |
︙ | ︙ |