Overview
Comment: | OFStreamObserver: Take a double as timeout. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3c99aa51daa9dde951e25ced06d23f01 |
User & Date: | js on 2012-09-12 06:00:25 |
Other Links: | manifest | tags |
Context
2012-09-12
| ||
06:00 | OFStreamObserver: Add -[cancel]. check-in: acb6598856 user: js tags: trunk | |
06:00 | OFStreamObserver: Take a double as timeout. check-in: 3c99aa51da user: js tags: trunk | |
2012-09-11
| ||
16:48 | Add OFTimer and OFRunLoop. check-in: a4494ec477 user: js tags: trunk | |
Changes
Modified src/OFStreamObserver.h from [8754133d3a] to [8202cb76d9].
︙ | |||
169 170 171 172 173 174 175 | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | - + - + | */ - (void)observe; /** * \brief Observes all streams until an event happens on a stream or the * timeout is reached. * |
Modified src/OFStreamObserver.m from [44b77ee334] to [f07f85b2a0].
︙ | |||
366 367 368 369 370 371 372 | 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | - + | } - (void)observe { [self observeWithTimeout: -1]; } |
︙ |
Modified src/OFStreamObserver_kqueue.m from [ef7d60eaa2] to [5936ea8b18].
︙ | |||
94 95 96 97 98 99 100 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | - + - + + + + | { struct kevent event; EV_SET(&event, fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0); [changeList addItem: &event]; } |
︙ |
Modified src/OFStreamObserver_poll.m from [a6a3da0735] to [927bd4e34c].
︙ | |||
116 117 118 119 120 121 122 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | - + | - (void)_removeFileDescriptorForWriting: (int)fd { [self _removeFileDescriptor: fd withEvents: POLLOUT]; } |
︙ | |||
139 140 141 142 143 144 145 | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - + + | nFDs = [FDs count]; #ifdef OPEN_MAX if (nFDs > OPEN_MAX) @throw [OFOutOfRangeException exceptionWithClass: [self class]]; #endif |
︙ |
Modified src/OFStreamObserver_select.m from [2098b64113] to [a76eca16d0].
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + | { FD_CLR(fd, &writeFDs); if (!FD_ISSET(fd, &readFDs)) FD_CLR(fd, &exceptFDs); } |
︙ | |||
94 95 96 97 98 99 100 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - - + + | FD_COPY(&exceptFDs, &exceptFDs_); #else readFDs_ = readFDs; writeFDs_ = writeFDs; exceptFDs_ = exceptFDs; #endif |
︙ |